API Options
Name | Description | Default value | Allowed values |
---|---|---|---|
|
Sets document attributes, which override equivalently-named attributes defined in the document unless soft set.
No substitutions are applied to the value of these attributes.
In the hash format, a |
not set |
Document attributes in the following formats: Hash Array String (space separated) |
|
Selects converter to use. |
|
|
|
Sets the base (aka working) directory containing the document and resources. |
Directory of the source file, or the working directory if the source is read from a stream. |
file path |
|
If |
|
Boolean |
|
Specifies a user-supplied converter class or instance, used in place of the converter that is automatically resolved from the |
not set |
|
|
Sets the document type. |
|
|
|
Specifies the eRuby implementation to use for executing the converter templates written in ERB. |
|
|
|
A Ruby block that registers (and possibly defines) Asciidoctor extensions for this instance of the processor. |
not set |
A Ruby block that conforms to the Asciidoctor extensions API (the same code that would be passed to the |
|
Overrides the extensions registry instance. Instead of providing a Ruby block containing extensions to register, this option lets you replace the extension registry itself, giving you complete control over how extensions are registered for this processor. |
not set |
|
|
If |
|
Boolean |
|
If |
Varies |
Boolean |
|
If |
|
Boolean |
|
If |
|
Boolean |
|
Sets the safe mode. |
|
|
|
Tracks the file and line number for each parsed block. Useful for tooling applications where the association between the converted output and the source file is important. |
|
Boolean |
|
Enables the built-in cache used by the template converter when reading the source of template files.
Only relevant if |
|
Boolean |
|
Array of directories containing Tilt-compatible converter templates to be used instead of the default built-in templates. |
not set |
Array of file paths |
|
Template engine to use for the custom converter templates. The gem with the same name as the engine will be loaded automatically. This name is also used to build the full path to the custom converter templates. |
auto |
Template engine name (e.g., |
|
Low-level options passed directly to the template engine. |
not set |
Nested Hash of options with the template engine name as the top-level key and the option name as the second-level key. |
|
Capture time taken to read, parse, and convert document. Internal use only. |
not set |
|
|
Name of the output file to write, or |
not set |
|
|
Destination directory for output file(s), relative to |
Directory containing source file, or working directory if source is read from a stream. |
File path |