Skip to content

feat: explore pulldown_cmark #6

@zeon256

Description

@zeon256

Currently there are 3 popular markdown parser that are available in rust all of which offer their own set of pros/cons

  • comrak
  • markdown-rs
  • pulldown_cmark

This issue is a tracking issue for evaluating pulldown_cmark. Currently, this is implemented in the branch feat/pulldown_cmark

Findings

  • When rendering progit.md without syntax highlighting, it takes about 150ms as compared to 18ms compared to comrak
  • There are some examples on how to add syntax highlighting using syntect that modifies the parser events directly
  • There is a blog post suggesting that pulldown_cmark + syntax highlighting (tree-sitter) is the fastest available out there
  • By default it's not XSS safe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions