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

Anki-markdown and MathJax support #80

Open
andrewcrook opened this issue Oct 31, 2020 · 2 comments
Open

Anki-markdown and MathJax support #80

andrewcrook opened this issue Oct 31, 2020 · 2 comments

Comments

@andrewcrook
Copy link

andrewcrook commented Oct 31, 2020

I am wondering if your plugin can be made to work with MathJax?

At the moment the markdown fails to render when using MathJax equations (equation renders) or I get the markdown rendered and the brackets removed from the equation so the equation does not render.

I think that Markdown should work with MathJax if the two libraries and nested correctly?
certainly some JavaScript Markdown libraries have extensions to add MathJax (and Latex support).

@ssricardo
Copy link
Owner

ssricardo commented Feb 21, 2021

Can you send me a couple of valid MathJax equations?
I'd need to test and check it'd be to add this support

@AGBrown
Copy link

AGBrown commented Jun 21, 2021

You could try this, which includes potential problem characters like \ and &:

\( 
  \begin{pmatrix} 
    1 & x & x^2 \\
    1 & y & y^2 \\
    1 & z & z^2 \\
  \end{pmatrix}
\)

which renders in anki like this:
image

and

\(\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}\)

which renders in anki like this:
image

There are a lot of examples listed at math.meta.stackexchange.com, but note that anki expects the markup to start be enclosed in \( \), not $ delimited

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