You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following code blocks extensions are implemented during markdown parsing in Node side. That means, the code blocks won't be processed in client side.
158
158
159
-
Notice that some of the code blocks features require theme support. The default theme of VuePress supports all of them, but community themes might not. You'd better check the theme documentation before using them.
159
+
With [@vuepress/plugin-prismjs][prismjs] and [@vuepress/plugin-shiki][shiki], you can highlight code blocks with [Prism](https://prismjs.com/) or [Shiki](https://shiki.style/).
It can be used in combination with the other marks below. Please leave a space between them.
197
+
::: tip
198
+
199
+
Code title is supported by highlight plugins by default. It can be used in combination with the other marks below. Please leave a space between them.
200
+
201
+
:::
198
202
199
203
#### Line Highlighting
200
204
@@ -239,9 +243,11 @@ Examples for line ranges mark:
239
243
- Combined: `{4,7-13,16,23-27,40}`
240
244
241
245
::: tip
242
-
This line highlighting extension is supported by our built-in plugin, which is forked and modified from [markdown-it-highlight-lines](https://github.com/egoist/markdown-it-highlight-lines).
Line highlighting extension is supported by highlighter plugins.
248
+
249
+
Config reference: [prism line highlighting](https://ecosystem.vuejs.press/plugins/markdown/prismjs.html#highlightlines) and [shiki highlighting](https://ecosystem.vuejs.press/plugins/markdown/shiki.html#highlightlines).
250
+
245
251
:::
246
252
247
253
#### Line Numbers
@@ -281,9 +287,11 @@ const line3 = 'This is line 3'
281
287
```
282
288
283
289
::: tip
284
-
This line numbers extension is supported by our built-in plugin.
Line numbers extension is supported by highlighter plugins.
292
+
293
+
Config reference: [prism line numbers](https://ecosystem.vuejs.press/plugins/markdown/prismjs.html#linenumbers) and [shiki line numbers](https://ecosystem.vuejs.press/plugins/markdown/shiki.html#linenumbers).
0 commit comments