#markdown-converter #common-mark #markdown #converter #render

pulldown-cmark-to-cmark

Convert pulldown-cmark Events back to the string they were parsed from

49 stable releases (20 major)

21.0.0 Feb 18, 2025
20.0.1 Feb 12, 2025
20.0.0 Dec 15, 2024
19.0.1 Dec 11, 2024
1.1.0 Feb 13, 2018

#37 in Text processing

Download history 154704/week @ 2024-12-05 171086/week @ 2024-12-12 74278/week @ 2024-12-19 46808/week @ 2024-12-26 147133/week @ 2025-01-02 203506/week @ 2025-01-09 63706/week @ 2025-01-16 44960/week @ 2025-01-23 53810/week @ 2025-01-30 61302/week @ 2025-02-06 53880/week @ 2025-02-13 54713/week @ 2025-02-20 55592/week @ 2025-02-27 60725/week @ 2025-03-06 57419/week @ 2025-03-13 49036/week @ 2025-03-20

232,292 downloads per month
Used in 92 crates (60 directly)

Apache-2.0

57KB
1K SLoC

Crates.io Rust

A utility library which translates Event back to markdown. It's the prerequisite for writing markdown filters which can work as mdbook-preprocessors.

This library takes great pride in supporting everything that pulldown-cmark supports, including tables and footnotes and codeblocks in codeblocks, while assuring quality with a powerful test suite.

How to use

Please have a look at the stupicat-example for a complete tour of the API, or have a look at the api-docs.

It's easiest to get this library into your Cargo.toml using cargo-add:

cargo add pulldown-cmark-to-cmark

Supported Rust Versions

pulldown-cmark-to-cmark follows the MSRV (minimum supported rust version) policy of pulldown-cmark. The current MSRV is 1.71.1.

Friends of this project

  • termbook
    • A runner for mdbooks to keep your documentation tested.
  • Share Secrets Safely
    • share secrets within teams to avoid plain-text secrets from day one

Maintenance Guide

Making a new release

  • Assure all documentation is up-to-date and tests are green
  • update the version in Cargo.toml and git commit
  • run cargo release --no-dev-version

Dependencies

~1MB
~21K SLoC