pullup 0.3.3

Convert between markup formats
Documentation

Pullup

Pullup converts between pulldown parser events for various markup formats.

Currently supported markup formats:

  • Markdown (via the markdown feature)
  • mdBook (via the mdbook feature)
  • Typst (via the typst feature)

Formats are disabled by default and must be enabled via features before use.

How to use the crate

  1. Parse markup with a format-specific pulldown parser (for example, pulldown_cmark is used to parse Markdown). The parser creates an iterator of markup-specific Events.
  2. Load the format-specific Events into the multi-format ParserEvent provided by this crate.
    • Iterator adaptors to do so are available in the assert module.
  3. Operate on the ParserEvents.
  4. Strip irrelevant ParserEvents and output to a different format.