Skip to content

Migrate from hoedown to pulldown-cmark for markdown parsing #38400

Closed
@frewsxcv

Description

@frewsxcv

For markdown parsing, we currently use rust-lang/hoedown (based on hoedown/hoedown). There's a (somewhat) new Markdown pull parser entirely written in Rust: google/pulldown-cmark. Some reasons to switch:

  • All the safety guarantees that come with anything written in Rust
  • Rust contributors don't need to know C if they want to make changes upstream
  • Don't need to maintain our own C hoedown bindings / pulldown-cmark has an idiomatic Rust API
  • It uses Cargo, which should make integration easy

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions