docvim-0.3.1.1: Documentation generator for Vim plug-ins

Safe HaskellNone
LanguageHaskell2010

Text.Docvim.Visitor.Heading

Synopsis

Documentation

getHeadings :: Node -> [String] Source #

Returns a list of all headings, in the order in which they appear in the AST.

injectTOC :: Node -> Node Source #

Injects a table of contents immediately after any PluginAnnotation in an AST (note: there should only be one). TODO: warn or error if there is more than one. or use a monadic variant of transform to do only the first...