// The toc node is used only with toc::[] macro! // Actual TOC content is rendered in the outline template, this template // usually renders just a "border". = Document Title :toc: macro == Introduction 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 Attr ( [] , fromList [ ( "id" , "_introduction" ) ] ) Nothing (Section (Level 1) [ Inline mempty (Str "Introduction") ] [ 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") ] []) ]) ] }