¶fir.generic.emit.markdown
An emitter that works with a GenericAST and turns it into markdown.
¶API
This is the API provided to work with the generic markdown emitter.
| Element | Summary |
|---|---|
| Functions | |
| emit | Emits Markdown from a GenericAST |
| emitDescription | Emits Markdown from the description of an element. |
| emitSection | Emits Markdown from a GenericSection |
| listAllSymbols | Locates all symbols in an AST |
| replaceSymbols | Returns a string with the symbol syntax replaced with its documentation location |
Emits Markdown from a GenericAST
tabs:table: Adds tabbed syntax to the final output.use:boolean|"docsify"|"pymdownx"(false): Outputs tab syntax, either docsify-tabs or pymdownx.tabbed.docsify_header:string("####"): Unused. Headers to use for docsify-tabs.
all:boolean(false): Also emits hidden elements.sections:table: Settings for sections.columns:table: Settings for columns.[n]:table: (wherencan be any number or"*"). Specifies the column names for sectionn(with fallback).[1]:string("Element") - Left column[2]:string("Summary") - Right column
types:table: Aliases for types.[type]:string: (wheretypecan be any of the types supported by GenericAST). Default values includetype=Typesandfunction=Functionsamong others.
symbols:{string:string}: Map of symbols to their documentation locationssymbols_in_code:boolean|'mkdocs'(false): Whether to link symbols inside code. Only supports MkDocs.
Emits Markdown from the description of an element.
tabs:table: Adds tabbed syntax to the final output.use:boolean|"docsify"|"pymdownx"(false): Outputs tab syntax, either docsify-tabs or pymdownx.tabbed.docsify_header:string("####"): Headers to use for docsify-tabs.
symbols:{string:string}: Map of symbols to their documentation locationsymbols_in_code:boolean|'mkdocs'(false): Whether to link symbols inside code. Only supports MkDocs.
¶Recognized options
headerOffset:number(1): Offsets the header levels by n
Emits Markdown from a GenericSection
Locates all symbols in an AST
module:string: Module string to useurl_prefix:string: Prefix of all documentation urls
Returns a string with the symbol syntax replaced with its documentation location
<symbol>