Expand description
A djot renderer with advanced features.
DMOS builds on the jotdown djot parser and its default HTML renderer, but adds the following features:
- Syntax highlighting (if enabled, see feature flags)
- Table of contents generation with various options
- Adding anchors to section headings
- Convenient extraction of document title
- Extraction of document metadata from specific attributes
The main entry points are the module’s render(), title(), toc(),
and meta() functions. See RenderOpts and TocOpts for options
controlling the output. For more low-level customizations, the individual
renderers could also be used, but make sure to use the re-exported
jotdown module when working with them.
§Feature flags
Re-exports§
pub use jotdown;
Structs§
- Document
Renderer - Implementation of
jotdown::Renderthat renders documents with advanced features. - Meta
Opts - Options controlling the metadata generation
- Meta
Renderer - Implementation of
jotdown::Renderthat outputs all “dmos:” attributes in a format suitable for consumption with env(1). - Render
Opts - Options controlling the document generation.
- Title
Renderer - Implementation of
jotdown::Renderthat only writes a document’s plain-text title. - TocOpts
- Options controlling the table-of-contents generation.
- TocRenderer
- Implementation of
jotdown::Renderthat renders a document’s table of contents as HTML.