11 releases

0.3.8 Oct 29, 2024
0.3.7 Sep 8, 2024
0.3.3 Mar 3, 2024
0.3.2 Dec 1, 2023
0.1.0 Nov 22, 2023

#694 in Text processing

Download history 28/week @ 2024-07-29 4/week @ 2024-08-05 16/week @ 2024-08-26 335/week @ 2024-09-02 144/week @ 2024-09-09 107/week @ 2024-09-16 67/week @ 2024-09-23 26/week @ 2024-09-30 18/week @ 2024-10-07 10/week @ 2024-10-14 4/week @ 2024-10-21 141/week @ 2024-10-28 29/week @ 2024-11-04 16/week @ 2024-11-11

192 downloads per month
Used in mdbook-typst

MIT/Apache

74KB
1.5K SLoC

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.

Dependencies

~0–10MB
~117K SLoC