Expand description
Adapter traits for plugins.
Each plugin has to implement one of the traits available in this module.
Structs§
- The struct passed to the
HeadingAdapter
for custom heading implementations.
Traits§
- Implement this adapter for creating a plugin for custom headings (
h1
,h2
, etc.). Theenter
method defines what’s rendered prior the AST content of the heading while theexit
method defines what’s rendered after it. Both methods provide access to aHeadingMeta
struct and leave the AST content of the heading unchanged. - Implement this adapter for creating a plugin for custom syntax highlighting of codefence blocks.