The AsciiDoc source document is read and processed as follows:
- The document Header is parsed, header parameter values are substituted into the configuration file
[header]template section which is then written to the output file.
- Each document Section is processed and its constituent elements translated to the output file.
- The configuration file
[footer]template section is substituted and written to the output file.
When a block element is encountered asciidoc(1) determines the type of block by checking in the following order (first to last): (section) Titles, BlockMacros, Lists, DelimitedBlocks, Tables, AttributeEntrys, AttributeLists, BlockTitles, Paragraphs.
The default paragraph definition
[paradef-default] is last element to be checked.
Knowing the parsing order will help you devise unambiguous macro, list and block syntax rules.
Inline substitutions within block elements are performed in the following default order:
- Special characters
- Special words
- Inline Macros
The substitutions and substitution order performed on Title, Paragraph and DelimitedBlock elements is determined by configuration file parameters.Back to top