diff --git a/docs/guide/markdown.md b/docs/guide/markdown.md index b2fe1827..9134d4ba 100644 --- a/docs/guide/markdown.md +++ b/docs/guide/markdown.md @@ -328,19 +328,19 @@ module.exports = { You can import code snippets from existing files via following syntax: -``` md +```md <<< @/filepath ``` It also supports [line highlighting](#line-highlighting-in-code-blocks): -``` md +```md <<< @/filepath{highlightLines} ``` **Input** -``` md +```md <<< @/snippets/snippet.js{2} ``` @@ -368,7 +368,7 @@ You can also use a [VS Code region](https://code.visualstudio.com/docs/editor/co **Input** -``` md +```md <<< @/snippets/snippet-with-region.js{1} ``` @@ -388,7 +388,6 @@ You can also use a [VS Code region](https://code.visualstudio.com/docs/editor/co - ## Advanced Configuration VitePress uses [markdown-it](https://github.com/markdown-it/markdown-it) as the Markdown renderer. A lot of the extensions above are implemented via custom plugins. You can further customize the `markdown-it` instance using the `markdown` option in `.vitepress/config.js`: