asciidoc-0.1: test/asciidoctor/toc/in-preamble.test
= Document Title
:toc: macro
toc::[]
== The Ravages of Writing
=== A Recipe for Potion
>>>
Document
{ docMeta =
Meta
{ docTitle = [ Inline mempty (Str "Document Title") ]
, docTitleAttributes = Nothing
, docAuthors = []
, docRevision = Nothing
, docAttributes =
fromList [ ( "sectids" , "" ) , ( "toc" , "macro" ) ]
}
, docBlocks =
[ Block mempty Nothing TOC
, Block
Attr
( [] , fromList [ ( "id" , "_the_ravages_of_writing" ) ] )
Nothing
(Section
(Level 1)
[ Inline mempty (Str "The Ravages of Writing") ]
[ Block
Attr
( [] , fromList [ ( "id" , "_a_recipe_for_potion" ) ] )
Nothing
(Section
(Level 2) [ Inline mempty (Str "A Recipe for Potion") ] [])
])
]
}