
Markdown Edge Cases Demo
Headings
H1
H2
H3
H4
H5
H6
Text Styles
Italic
Italic with underscores
Bold
Bold with underscores
Bold + ItalicStrikethrough
Subscript
Superscript
Paragraphs & Line Breaks
This is a paragraph.
This is another paragraph.
This is a line with two spaces at the end →
See? It broke the line.
Blockquotes
Single line blockquote
Nested blockquote
Third level blockquote
Lists
Unordered
- Item
- Item 2
- Item 3
- Item X
Ordered
- New here
- New
- New here
- New there
Code
Inline
Use the print() function.
Fenced
function hello() {
console.log("Hello Markdown!");
}
Indented
const x = 42
console.log(x)
Links
Normal link
Link with title
https://example.com (auto-link)
Images
Tables
| Name | Age | Notes |
|---|---|---|
| Alice | 24 | Italic text |
| Bob | 30 | Bold text |
| Charlie | 29 | Inline code |
Horizontal Rules
Task Lists
- Done
- Not done
- Another item
Escaping Characters
*This is not italic*
Use backslash to escape: # * _ [ ]
HTML inside Markdown
This is raw HTML
Bold via HTMLDefinition Lists (some renderers only)
Term 1
: Definition 1
Term 2
: Definition 2
Footnotes
Here’s a sentence with a footnote.1
Math (if supported, e.g. with KaTeX/MathJax)
Inline: $E=mc^2$
Block:
$$
\int_0^\infty e^{-x} dx = 1
$$

Some heading
nnn
Footnotes
- This is the footnote text. ↩