Crate dmos

source ·
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:

The main entry points are the module’s render(), title() and toc() 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

  • syntect (default): syntax highlighting for code block based on syntect
  • inkjet: syntax highlighting based on inkjet

Re-exports§

Structs§

Enums§

Functions§

  • Renders a Djot document to HTML.
  • Returns the plain-text title of the document.
  • Renders a table of contents for the document as HTML.