pullup

Crates.iopullup
lib.rspullup
version0.3.8
sourcesrc
created_at2023-11-22 22:14:14.103552
updated_at2024-10-29 02:03:54.05926
descriptionConvert between markup formats
homepage
repository
max_upload_size
id1045555
size82,837
Christian Legnitto (LegNeato)

documentation

README

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.
Commit count: 0

cargo fmt