//! Adapter traits for plugins.
//!
//! Each plugin has to implement one of the traits available in this module.
use HashMap;
/// Implement this adapter for creating a plugin for custom syntax highlighting of codefence blocks.
/// The struct passed to the [`HeadingAdapter`] for custom heading implementations.
/// Implement this adapter for creating a plugin for custom headings (`h1`, `h2`, etc.). The `enter`
/// method defines what's rendered prior the AST content of the heading while the `exit` method
/// defines what's rendered after it. Both methods provide access to a [`HeadingMeta`] struct and
/// leave the AST content of the heading unchanged.