Full Markdown + Markdoc Syntax Reference
This document covers:
- Standard Markdown syntax
- Markdoc custom tags and usage
- All config options for defining custom tags
1. Headings
H1
H2
H3
H4
H5
H6
2. Emphasis
Bold text
Italic textStrikethroughInline code
3. Links and Images
4. Blockquotes
This is a blockquote with a single paragraph.
Multiple
lines
are allowed.
5. Lists
Unordered List
- Item A
- Item B
- Nested Item B.1
Ordered List
- First
- Second
- Third
6. Code Blocks
Markdown fenced block
// JavaScript code example
function greet(name) {
return `Hello, ${name}`;
}
7. Horizontal Rule
---
8. Tables
Product | Price | Available |
---|---|---|
Laptop | ₹50000 | Yes |
Headphones | ₹2000 | No |
9. Custom Tags (Defined in markdoc-config.ts)
9.1 Page Break
Self-closing tag. Renders a visual or functional break in content.
9.2 Callout Box
Important Notice
This section requires attention.
Operation completed successfully.
it's an informational block.
getting error.
Attributes:
type
: info | warning | success | error (optional, default: "info")title
: optional text heading
9.3 Expandable Details Section
Learn more about Markdoc
Markdoc supports collapsible sections using the details
tag.
Attribute:
summary
: required