Styleguide
Markdown Conversion Test Sample (CommonMark-only)
Purpose: Verify Markdown โ HTML conversion using only core CommonMark features.
No GFM (tables, task lists, strikethrough, autolink literals beyond angle-bracket form), no footnotes, no custom extensions, no math engines.
Basic text and emphasis
This is a paragraph with bold, italic, and bold + italic text, plus inline code
.
Hard line break comes hereโ โ
โฆand this is the next line after two spaces.
Autolinks: https://example.com and [email protected]
Inline link: Example site.
Emoji as plain Unicode: ๐ ๐ ๐
Headings
H1 heading
H2 heading
H3 heading
Blockquotes
A single-level blockquote with a paragraph.
It can span multiple lines and paragraphs.
- You can include lists
- inside a quote
- like this
A nested blockquote.
Lists
Unordered list
- Dash marker
- Another item
- Nested level 2
- Nested level 3
- Nested level 2
You can also use other markers:
- Asterisk marker
- Plus marker
Ordered list
- First item
- Second item
- Third item with nested list
- Nested ordered item
- Another nested item
Note: Many renderers renumber ordered lists automatically.
Code blocks
Fenced code block (with an info string):
// JavaScript sample
export function greet(name) {
return `Hello, ${name}!`
}
console.log(greet("world"))
Indented code block (4 spaces):
SELECT id, name
FROM users
WHERE active = true;
Links and images
Inline image:
Escaping and special characters
Literal characters: * _ ` # [ ] ( ) > + - ! |
Backslash itself: \\
Quotes: 'single', "double".