Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MathJax fails with newest version of Discourse? v1.9.0.beta4 +145 #43

Open
norandom opened this issue Jul 20, 2017 · 4 comments
Open

MathJax fails with newest version of Discourse? v1.9.0.beta4 +145 #43

norandom opened this issue Jul 20, 2017 · 4 comments

Comments

@norandom
Copy link

Hi,

I ran into an error:

Uncaught TypeError: Cannot read property 'inlineBetween' of undefined
    at plugin-third-party-288137a51d11831a19341218e92bfc5dbdeb774ced17877d7d3ff2353bec8161.js:1
    at plugin-third-party-288137a51d11831a19341218e92bfc5dbdeb774ced17877d7d3ff2353bec8161.js:1

MathJax does not work with Discourse, probably due to this file:
https://github.com/kasperpeulen/discourse-mathjax/blob/6b7ca800de53a424f52cb2ea36d8ee9ee0c0470f/assets/javascripts/tex_dialect.js

Discourse Version: v1.9.0.beta4 +145
MathJax repo: (from app.yml)

git clone https://github.com/kasperpeulen/discourse-mathjax

Not sure why... for now.

@norandom
Copy link
Author

https://github.com/rux-pizza/discourse-mathjax - fixed here.

@xiasummer
Copy link

xiasummer commented Jul 22, 2017

you mean https://github.com/rux-pizza/discourse-mathjax can fix this problem?

But I tried and still not working. Do you have more solutions?


20170723, I found it working. Don't know why, just install https://github.com/rux-pizza/discourse-mathjax is OK.

@qnxor
Copy link

qnxor commented Jul 24, 2017

I'm having the same problem. How exactly did you guys make it work?

I added the git clone https://github.com/rux-pizza/discourse-mathjax.git line in app.yml then did a ./launcher app rebuild but my posts are still bare. I tried a rake posts:rebake to no avail.

Before this I tried the newer Math plugin which works with v1.9 but doesn't support many features. I'm trying to go back to the mathjax plugin but have so far been unsuccessful.

@qnxor
Copy link

qnxor commented Jul 24, 2017

Got it ... I had to disable the newer math plugin by commenting it out in app.yml then did a ./launcher app rebuild followed by ./launcher enter app and rake posts:rebake. Leaving this here in case others have the same problem.

The original plugin repo loads a file meant for adding compatibility with older Discourse versions, and this file calls functions which are no longer available in v1.9, hence it fails. This is good to know for the future as it allows a quick manual fix for newer Discourse versions ... hopefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants