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

added support for rendering LaTeX equations using MathJax #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

added support for rendering LaTeX equations using MathJax #68

wants to merge 1 commit into from

Conversation

jbchouinard
Copy link
Contributor

Used MathJax config that only supports TeX because that's all I need and it's more lightweight.

I see that other javascript libraries used in the code are included statically. Including a MathJax install instead of using the CDN version would be mildly complicated but I could be convinced to do it if that'd be more satisfactory.

@victorstanciu
Copy link
Collaborator

Hi @jbchouinard,

Thank you for your contribution. Is there any way to only load the MathJax library when it's actually needed? I would prefer not loading an entire library on all pages, especially one that not all users will need.

@jbchouinard
Copy link
Contributor Author

@victorstanciu I agree that would be better. I'll have to research / think about it. The two solutions I can think of off the top of my head is either make it configurable (checkbox), or have a small piece of javascript detect LaTeX math and only load the full MathJax library if it finds some. Perhaps only load it if the first line of the markdown document is <!--- LaTeX ---> or something like that.

@zohead
Copy link

zohead commented Apr 26, 2016

@victorstanciu @jbchouinard
This is really useful, perhaps Math gimmicks in MDwiki should be a choice?
http://dynalon.github.io/mdwiki/#!gimmicks.md

@symera
Copy link

symera commented Jun 1, 2016

@jbchouinard:
Loading the library only after detecting LaTeX math code sounds neat.
But I would prefer KaTeX as a math library (much faster and less heavy than MathJax).

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

Successfully merging this pull request may close these issues.

4 participants