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

A known issue with Mathjax may be need to remedy. #92

Closed
RayHY opened this Issue Mar 28, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@RayHY
Copy link
Contributor

RayHY commented Mar 28, 2018

There is a known issue with hugo when using Mathjax. Official documents show a way to remedy this problem.
By the way, I try to fix this problem by myself, but I found < in mathjax-markdown-solution.html which is showed in official documents has been escaped and mathjax doesn't work. Hope this helps.

@mtn

This comment has been minimized.

Copy link
Owner

mtn commented Mar 28, 2018

Sorry, can you elaborate on that example? I remember reading that page, and I think it's not up to date.

@RayHY

This comment has been minimized.

Copy link
Contributor Author

RayHY commented Mar 28, 2018

I upload a test html in my cdn and this the markdown file
See file in my markdown editor :
screenshot from 2018-03-28 21-27-21

@mtn

This comment has been minimized.

Copy link
Owner

mtn commented Apr 28, 2018

Hm, sorry for letting this stagnate @Jinxiapu. I think when I get a chance, I'm going to try out KaTeX, which is an alternate rendering system. I've heard good things about it, for awhile. Won't be getting to this for a bit, but wanted to give you an update.

@mtn

This comment has been minimized.

Copy link
Owner

mtn commented Jun 16, 2018

There's some discussion about this on this issue. I tried out mmark, and it works as expected:

screen shot 2018-06-16 at 12 15 46 pm

with basically the same input file. For reference, you can find that input file here. Switching to .md immediately breaks things. In all cases, it seems like you can use $$ as your delimiter -- for non-inline, just don't put other text on the line.

Given how much easier working with mmark seems to be, I'm going to leave things the way they are and consider mmark the supported way to create files that must render latex. I'm happy to discuss if you disagree, but it's probably better for everyone's sanity to do it this way.

Lastly, I might try out KaTeX in the future, but am putting that off for now. If anyone desperately wants that, I'll make it a higher priority.

@mtn mtn closed this Jun 16, 2018

@mtn

This comment has been minimized.

Copy link
Owner

mtn commented Jun 16, 2018

And thank you for making the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.