Markdown Syntax Test
摘要
A stress-test document for common Markdown, GFM, HTML, and Nuxt Content MDC syntax.
Markdown Syntax Test
This document is a playground for testing Markdown rendering. It intentionally includes many edge cases and visual patterns.
Jump to tables · Jump to code · Jump to MDC
Paragraphs And Line Breaks
This is a normal paragraph. It contains enough text to wrap across multiple lines so spacing, line height, and width can be inspected in the renderer.
This is another paragraph after a blank line.
This line ends with two spaces.
This should render as a soft line break.
This line uses an HTML break.
This should also appear on the next line.
Inline Formatting
This sentence has bold text, italic text, bold italic text, strikethrough text, inline code, and a normal link.
Autolinks should work too: https://example.com and hello@example.com.
Escaped characters: *not italic*, # not a heading, [not a link].
Headings
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Blockquotes
This is a simple blockquote.
This is a multi-paragraph blockquote.
It has a second paragraph.
Nested blockquote:
This is nested one level deeper.
This is nested two levels deeper.
Blockquote with formatting:
- Bold list item
inline code- A link
Custom Containers
Collapsed by default
This content is hidden until the container is opened.
Expanded by default
This content is visible by default and can be collapsed.
Lists
Unordered Lists
- First item
- Second item
- Nested item A
- Nested item B
- Deep nested item
- Third item
- Asterisk item
- Another asterisk item
- Plus item
- Another plus item
Ordered Lists
- First ordered item
- Second ordered item
- Third ordered item
- Numbering can all be one.
- Markdown should still render it correctly.
- Useful for editing.
Mixed Lists
- Ordered item
- Nested unordered item
- Another nested unordered item
- Another ordered item
- Nested ordered item
- Another nested ordered item
Task Lists
- Completed task
- Incomplete task
- Task with bold text
- Task with
inline code
Tables
| Left aligned | Center aligned | Right aligned |
|---|---|---|
| Alpha | Beta | 123 |
| Long content that wraps | Bold and code | 456.78 |
| Link | Example | 999 |
| Feature | Status | Notes |
|---|---|---|
| Paragraphs | Works | Basic text rendering |
| Lists | Works | Nested and task lists |
| Code | Works | Inline and fenced |
Code Blocks
Inline code: const answer = 42.
Indented code:
const indented = true
console.log(indented)
Plain fenced code:
No language here.
Just plain text.
TypeScript:
console.log("hello")
JavaScript with filename:
export default defineComponent({})
type Post = {
title: string
tags: string[]
draft?: boolean
}
const post: Post = {
title: 'Markdown Syntax Test',
tags: ['markdown', 'nuxt-content'],
}
Code with Line Numbers:
function calculateSum(a, b) {
const result = a + b;
console.log("Sum:", result);
return result;
}
Line Numbers with Filename:
const sum = (a: number, b: number) => a + b
Line Numbers with Start:
console.log("first visible line")
console.log("second visible line")
Vue:
<script setup lang="ts">
const message = 'Hello Markdown'
</script>
<template>
<p>{{ message }}</p>
</template>
Bash:
npm run dev
npm run build
Diff:
- const oldTheme = 'light'
+ const newTheme = 'dark'
JSON:
{
"title": "Markdown Syntax Test",
"draft": true,
"tags": ["Markdown", "Nuxt Content"]
}
Code Group (Nuxt Content MDC):
npm install
yarn install
pnpm install
Horizontal Rules
Three hyphens:
Three asterisks:
Three underscores:
Images
Local image:
![]()
Image with title:

Linked image:
Markdown Image Width Tests
Plain Markdown image:
![]()
Markdown image with Nuxt MDC width and height attributes:
![]()
Markdown image with class attributes:
![]()
Markdown image with Tailwind arbitrary width class:
![]()
Wide Markdown image:

Wide Markdown image constrained by class:

Markdown linked image:
Missing image:

Missing image with title:

Missing image with explicit size:

Links
Inline link: Nuxt
Reference link: Nuxt Content
Another reference link: Example
Footnotes
Here is a sentence with a footnote.1
Here is another footnote with more text.2
HTML
Details
Native details element
This content is inside a native HTML details block.
+
Highlighted text using HTML mark.
Inline HTML span with custom color.
Escaping And Entities
HTML entities: © — → <div>
Backslash escaping:
`not code`
**not bold**
Definition-Like Text
Term : Definition syntax may or may not be supported depending on the Markdown parser.
Another Term : Another definition body.
Math-Like Text
Inline math-like text: $E = mc^2$
Block math-like text:
$$ E = mc^2 $$
This section is here to verify whether math is supported or rendered as plain text.
Nuxt Content MDC
The following syntax tests Nuxt Content MDC. Rendering depends on available components.
This is an MDC block using the Alert component if it is registered.
This alert passes props.
This is a raw MDC div container with classes.
Card Title
Card content with Markdown inside.
Long Content
This section intentionally adds repeated paragraphs so scroll behavior, anchors, and table of contents behavior can be tested.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer luctus, justo vitae aliquet porta, lectus augue blandit nisl, vitae tempor ipsum arcu a erat.
Praesent commodo, magna vitae ullamcorper tristique, ipsum nibh efficitur justo, id volutpat sem ex nec massa.
Curabitur posuere sapien ut ipsum luctus, sed feugiat mi porta. Donec feugiat, magna id dignissim dictum, velit mi rhoncus ipsum, vitae aliquet sapien augue sit amet odio.
Final Section
If anchor links work correctly, clicking a heading anchor above should not unexpectedly jump here.
End of test document.