- https://parsedown.org/
- https://github.com/erusev/parsedown
fast single file parser to html
Spec: https://spec.commonmark.org/
https://spec.commonmark.org/0.30/spec.txt
-> Keep it simple -> KISS
-> Markdown should just convert to HTML
Markdown Syntax | HTML Output | Description |
---|---|---|
# Heading 1 |
<h1> |
Headings (h1-h6) |
plain text | <p> |
Paragraphs |
**bold** |
<strong> |
Bold text |
*italic* |
<em> |
Italic text |
[text](url) |
<a> |
Links |
 |
<img> |
Images |
> quote |
<blockquote> |
Blockquotes |
- item or * item |
<ul><li> |
Unordered lists |
1. item |
<ol><li> |
Ordered lists |
`inline code` |
<code> |
Inline code |
\ncode block\n |
<pre><code> |
Code block |
--- or *** |
<hr> |
Horizontal rule |
empty line | (new block) | New paragraph or block break |