Overview of Markdig features and extensions
mainMarkdig is a fast, CommonMark-compliant Markdown processor for .NET. Key features include:
- High Performance: Fast parser and HTML renderer with low GC pressure.
- AST Support: Provides an Abstract Syntax Tree with precise source code locations.
- Roundtrip Support: Supports lossless parse $\rightarrow$ render roundtrips by parsing trivia (whitespace, newlines).
- Extensibility: Pluggable architecture allowing you to enable/disable specific parsing behaviors.
Built-in Extensions
Markdig includes over 20 extensions, including:
- GitHub Style Alerts:
[!Note],[!Tip],[!Important],[!Warning],[!Caution] - Tables: Pipe tables and Grid tables.
- Extra Emphasis: Strike through
~~, Subscript~, Superscript^, Inserted++, Marked==. - Task Lists: GitHub-style task lists.
- Mathematics: LaTeX support using
$and$$. - Diagrams: Supports
mermaidandnomnomlvia fenced code blocks. - Other: Footnotes, Auto-identifiers, Auto-links, Emoji, YAML Front Matter, and more.