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 interferes with Markdown fences #1358
Comments
I would like to help for this. Will start reading |
According to this post we may need to change the CDN |
awesome, thanks!
…On Thu, Apr 6, 2017 at 11:53 AM, Ashan Priyadarshana < ***@***.***> wrote:
I would like to help for this. Will start reading MathJax documentation
and inform about suggestions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1358 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJw22B-ue5XrGMGkCvBmUtiJ0cNIgks5rtQpfgaJpZM4MrzMg>
.
|
Ah -- can you look on npmjs.org to see if we can just include it directly?
…On Thu, Apr 6, 2017 at 1:44 PM, Ashan Priyadarshana < ***@***.***> wrote:
According to this post we may need change the CDN
https://www.mathjax.org/cdn-shutting-down/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1358 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ6KQT513TiMRepoOq4yyKpe4BZZCks5rtSR6gaJpZM4MrzMg>
.
|
Yep, it's there. |
oh great -- well, we should be able to link to it either by its name or by
direct URL in https://github.com/publiclab/plots2/blob/master/bower.json --
and then change the URL that had been pointing to the CDN version. Can you
give that a try?
…On Thu, Apr 6, 2017 at 2:57 PM, Ashan Priyadarshana < ***@***.***> wrote:
Yep, it's there.
https://www.npmjs.com/package/mathjax
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1358 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJwaX0ypqpXnm6slKS0j_oQA2pMRwks5rtTWVgaJpZM4MrzMg>
.
|
Oh found the issue. We are using RDiscount to render the markdown in published notes. And the issue is current So I will try including the current version of gem in Gemfile. |
Fantastic!!! Great work!
…On Apr 13, 2017 7:46 AM, "Ashan Priyadarshana" ***@***.***> wrote:
Doing that solved the issue. now it is rendering correctly as follows.
[image: selection_111]
<https://cloud.githubusercontent.com/assets/13878973/25003406/dcb1db16-206c-11e7-81e8-8f8e21ff4145.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1358 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ5LqoBR8c6oZ9FJjRpX1EIxq7X18ks5rvgsjgaJpZM4MrzMg>
.
|
What happened just before the problem occurred
@khamba posted some code with code fences, like:
You can see the original raw markdown code here: https://publiclab.org/notes/raw/14004
But the mathjax library we've added parsed it and tried to evaluate it as a latex math expression, and caused an error:
Mathjax is included here: https://github.com/publiclab/plots2/blob/master/app/views/layouts/application.html.erb#L20
@vincegando had previously set Mathjax to use the default delimiters: e09451e
I wonder if we can specify things differently to avoid conflicting with code fences? I think we need to read some of the MathJax documentation to check.
The text was updated successfully, but these errors were encountered: