vuepress-plugin-mathjax icon indicating copy to clipboard operation
vuepress-plugin-mathjax copied to clipboard

warning An error was encountered in plugin "vuepress-plugin-mathjax"

Open arkhaiel opened this issue 4 years ago • 6 comments

Hello !

I don't understand why, but I simply added the plugin in the dependancies, added the plugin in the config.js file, and when running vuepress dev or build I got this message :

warning An error was encountered in plugin "vuepress-plugin-mathjax"

I don't know why, nor what I can do, it's the last vuepress version and I run it on a fresh install... clueless I am ! Thanks for helping, because I'm stuck with this one !

arkhaiel avatar May 25 '20 03:05 arkhaiel

Can someone confirm if this plugin is still working? I am having the same issue as the OP.

davidjpramsay avatar Jul 06 '20 04:07 davidjpramsay

I'm having the same issue. I'm now using @maginapp/vuepress-plugin-katex.

apcamargo avatar Jul 14 '20 10:07 apcamargo

I have same issue.

jlin-vt avatar Jul 29 '20 04:07 jlin-vt

Same error here.

cespon avatar Sep 06 '20 17:09 cespon

I'm having the same issue. I'm now using @maginapp/vuepress-plugin-katex.

I can't make this plugin work and got the same error like mathieunicolas, so I'm using vuepress-plugin-katex too and now the maths are showing properly. As seen here However, KaTeX can't be fully replace mathjax (LaTeX) though, because I've encountered some problem with syntax and extra redundant { } brackets from convert MathType -> LaTeX, and that will stop your (vuepress build) with some red errors, until you clean the formula of extra { } brackets.

There is no option to convert directly MathType to KaTeX, as far as I know. If anyone is an expert of this, please let me know.

foxdie987 avatar Oct 27 '21 03:10 foxdie987

Hi all, I wanted to share another method to get MathJax working in Vuepress. After spending an evening struggling to update this plugin to MathJax 3.2 (the current latest version), I found out that you can tell VuePress to use markdown-it extensions:

  1. npm install -D markdown-it-mathjax3
  2. add the following to your config.js
    extendMarkdown: md => {
      md.use(require('markdown-it-mathjax3'), { tex: {tags: 'ams'}})
    }
  }

This fixed a number of bugs I found, including:

  1. single character in-line equations showing up as display
  2. aligned sets of equations not working
  3. matrices not working

VitePress also uses markdown-it, so I suspect this method will work there as well (but I haven't checked)

daviddekoning avatar May 20 '22 11:05 daviddekoning