Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

docs(plugin-mathjax): update macros code demo #19

Merged
merged 4 commits into from
Feb 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions packages/docs/src/en/plugins/mathjax.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,16 @@ This is part of `config.js` of this project:

```js
module.exports = {
plugins: {
mathjax: {
macros: {
'\\Z': '\\mathbb{Z}'
}
}
}
plugins: [
[
'vuepress-plugin-mathjax',
{
macros: {
'\\Z': '\\mathbb{Z}',
},
},
],
],
}
```

Expand Down Expand Up @@ -177,6 +180,7 @@ sidebarDepth: 3
mathjax:
presets: '\def\lr#1#2#3{\left#1#2\right#3}'
---

```

**Input:**
Expand Down
18 changes: 11 additions & 7 deletions packages/docs/src/zh/plugins/mathjax.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,16 @@ markdown 文件中的 TeX 语法将遵循 [pandoc](http://pandoc.org/MANUAL.html

```js
module.exports = {
plugins: {
mathjax: {
macros: {
'\\Z': '\\mathbb{Z}'
}
}
}
plugins: [
[
'vuepress-plugin-mathjax',
{
macros: {
'\\Z': '\\mathbb{Z}',
},
},
],
],
}
```

Expand Down Expand Up @@ -177,6 +180,7 @@ sidebarDepth: 3
mathjax:
presets: '\def\lr#1#2#3{\left#1#2\right#3}'
---

```

**输入:**
Expand Down