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
192 downloads per month
Used in mdbook-typst
74KB
1.5K
SLoC
Pullup
Pullup converts between pulldown parser events for various markup formats.
Currently supported markup formats:
Formats are disabled by default and must be enabled via features before use.
How to use the crate
- Parse markup with a format-specific pulldown parser (for example,
pulldown_cmark
is used to parse Markdown). The parser creates an iterator of markup-specificEvent
s. - Load the format-specific
Event
s into the multi-formatParserEvent
provided by this crate.- Iterator adaptors to do so are available in the
assert
module.
- Iterator adaptors to do so are available in the
- Operate on the
ParserEvent
s. - Strip irrelevant
ParserEvents
and output to a different format.
Dependencies
~0–10MB
~117K SLoC