phaier_markdown
Markdown for Rust
Installation
cargo add phaier_markdown
Usage
let markdown = include_str!;
let blocks = parse.unwrap;
let rendered = render_markdown.unwrap;
Features
- markdown parsing
- Block contents
- headings
- paragraphs
- blockquotes
- code blocks (fenced and indented)
- lists (ordered and unordered)
- tables
- horizontal rules
- Inline contents
- emphasis (bold and italic)
- inline code
- links
- images
- strikethrough
- Block contents
- markdown rendering to HTML
- syntax highlighting
- math rendering with KaTeX
Testing
cargo test --all-features