A dependency-free Markdown parser with configurable GFM extensions.
API Reference
Structs
Enums
enum TableAlignment
Controls how a Markdown table column is aligned when rendered.
enum Block
A block-level Markdown node.
enum Inline
An inline Markdown node after delimiter and escape processing.
enum GFMExtension
An individually selectable GitHub Flavored Markdown feature.
enum Extension
A family of optional Markdown syntax extensions.
Functions
func parse_inlines(text: &String, extensions: &[Extension]) -> [Inline]
Parses one inline-content span without applying block grammar.
func parse(markdown: &String, extensions: &[Extension]) -> Document
Parses a complete Markdown string with an explicit extension set.
func to_html_with_heading_offset(consume markdown: String, extensions: &[Extension], heading_offset: Int) -> String
Parses Markdown and renders escaped HTML with shifted heading levels.
func to_html(consume markdown: String, extensions: &[Extension]) -> String
Parses Markdown and renders escaped HTML without shifting heading levels.