diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-04-07 01:19:17 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-04-07 01:19:17 -0700 |
| commit | c95c0a56cd994ff09c3aee767949a88752642409 (patch) | |
| tree | 0d89cb2e4a17cd8c004b3b2a3a1e648f1b720492 /markdown-examples.md | |
| parent | 8e1b5f1acb359bdd2fd8fa644f97274e6429b779 (diff) | |
migrate docs to vitepress
Diffstat (limited to 'markdown-examples.md')
| -rw-r--r-- | markdown-examples.md | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/markdown-examples.md b/markdown-examples.md new file mode 100644 index 0000000..f9258a5 --- /dev/null +++ b/markdown-examples.md @@ -0,0 +1,85 @@ +# Markdown Extension Examples + +This page demonstrates some of the built-in markdown extensions provided by VitePress. + +## Syntax Highlighting + +VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting: + +**Input** + +````md +```js{4} +export default { + data () { + return { + msg: 'Highlighted!' + } + } +} +``` +```` + +**Output** + +```js{4} +export default { + data () { + return { + msg: 'Highlighted!' + } + } +} +``` + +## Custom Containers + +**Input** + +```md +::: info +This is an info box. +::: + +::: tip +This is a tip. +::: + +::: warning +This is a warning. +::: + +::: danger +This is a dangerous warning. +::: + +::: details +This is a details block. +::: +``` + +**Output** + +::: info +This is an info box. +::: + +::: tip +This is a tip. +::: + +::: warning +This is a warning. +::: + +::: danger +This is a dangerous warning. +::: + +::: details +This is a details block. +::: + +## More + +Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown). |
