VSCode 改用 MathJax 渲染数学公式

首先安装Markdown Preview Enhanced插件,并做如下配置:

  • Ctrl+Shift+P → Markdown Preview Enhanced: Open Config Script (Global)

将如下内容添加到配置文件config.js中:

{
  "mathjaxConfig": {
    "tex": {
      "inlineMath": [["$", "$"], ["\\(", "\\)"]],
      "displayMath": [["$$", "$$"], ["\\[", "\\]"]],
      "tags": "ams"
    }
  }
}



Enjoy Reading This Article?

Here are some more articles you might like to read next: