Skip to content

Commit 827836c

Browse files
fix(docs): remark and rehype plugin syntax
1 parent 291c43e commit 827836c

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,25 @@ export default defineNuxtConfig({
248248
modules: ['@nuxtjs/mdc'],
249249
mdc: {
250250
remarkPlugins: {
251-
plugins: {
252-
// Register/Configure remark plugin to extend the parser
253-
}
251+
// Register/Configure remark plugin to extend the parser, e.g.
252+
// 'remark-math': {
253+
// src: 'remark-math',
254+
// options: {
255+
// singleDollarTextMath: true,
256+
// },
257+
// },
254258
},
255259
rehypePlugins: {
256-
options: {
257-
// Configure rehype options to extend the parser
258-
},
259-
plugins: {
260-
// Register/Configure rehype plugin to extend the parser
261-
}
260+
// Register/Configure rehype plugin to extend the parser, e.g.
261+
// 'rehype-mathjax': {
262+
// src: 'rehype-mathjax',
263+
// options: {
264+
// tex: {
265+
// inlineMath: [['$', '$'], ['\\(', '\\)']],
266+
// displayMath: [['$$', '$$'], ['\\[', '\\]']],
267+
// },
268+
// },
269+
// },
262270
},
263271
headings: {
264272
anchorLinks: {

0 commit comments

Comments
 (0)