MDC Support
本站使用自定义的 Nuxt MDC 组件模块 @sunshj/mdc,支持常见 Markdown 语法,并扩展了一些自定义语法。
Heading
Link
Preview
Code
Blockquote
Preview
Code
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Code Block
Preview
Code
ts
export default () => {
console.log('Code block')
}
With Title
export default () => {
console.log('Code block')
}
Highlight Lines
export default () => {
console.log('Code block');
};
Diff Lines
export default () => {
console.log('Code blcok') console.log('Code block') }
Code Group
Preview
Code
npm
pnpm
yarn
bun
npm run dev
Inline Code
Preview
Code
code inline
const codeInline: string = 'highlighted code inline'
Horizontal Rule
Preview
Code
Before
After
Image
Preview
Code
Get image from unsplash.com
Unordered List
Preview
Code
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
Ordered List
Preview
Code
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
Paragraph
Preview
Code
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Strong
Preview
Code
Just a strong paragraph.
Italic
Preview
Code
Just an italic paragraph.
Table
Preview
Code
Key | Type | Description |
---|---|---|
1 | Wonderful | Table with some long code snippet example |
2 | Wonderful | Data |
3 | Wonderful | Website |
Strikethrough
Preview
Code
Just a strikethrough paragraph.
Task List
Preview
Code
- Foo
- Bar
- Baz
Emoji
Preview
Code
😄 ❤️ 🚀
Shortcut
Preview
Code
Ctrl K
xs sm md