Markdown Syntax Showcase
This post is a compact demo of Markdown content rendered through Perron with kramdown, now with KaTeX in the mix.
Heading 1
Regular paragraph text can include bold, italic, bold italic, and strikethrough.
Heading 2
You can add links, inline code, and escaped characters like *this*.
Heading 3
Blockquotes work well for notes, callouts, and quoted content.
They can also span multiple lines.
Lists
- Unordered item
- Another item
- Nested item
- Nested item with
code
- Final item
- Ordered item
- Ordered item
- Ordered item
Task List
- Render checked item
- Render unchecked item
Code Block
def render_markdown(name)
"Hello, #{name}!"
end
Math
Inline math works inside a sentence like $E = mc^2$ or $a^2 + b^2 = c^2$.
Display math has room to breathe:
\[\int_0^1 x^2 \, dx = \frac{1}{3}\] \[f(x) = \sum_{n=0}^{\infty} \frac{x^n}{n!}\]Horizontal Rule
Table
| Syntax | Example |
|---|---|
| Bold | **text** |
| Italic | *text* |
| Code | `text` |
Image
Mixed Content
Here is a sentence with a footnote reference.1
- Term
- Definition lists are supported by kramdown.
Abbreviation HTML
HTML is available inline when an abbreviation is defined.
-
Footnotes help add supporting detail without breaking the flow. ↩