Module adapters
Adapter traits for plugins.
Each plugin implements one or more of the traits available in this module.
Structs
- CodefenceMeta Information about a codefence block given to the adapter implementation.
-
HeadingMeta
The struct passed to the
HeadingAdapterfor custom heading implementations. - SyntaxHighlightMeta Information about a code block given to the adapter implementation.
Traits
- CodefenceRendererAdapter Implement this adapter for custom rendering of codefence blocks.
-
HeadingAdapter
Implement this adapter for creating a plugin for custom headings (
h1,h2, etc.). Theentermethod defines what's rendered prior the AST content of the heading while theexitmethod defines what's rendered after it. Both methods provide access to aHeadingMetastruct and leave the AST content of the heading unchanged. - SyntaxHighlighterAdapter Implement this adapter for creating a plugin for custom syntax highlighting of codefence blocks.