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 support does not seem to be working #26

Open
Ptival opened this issue Jun 15, 2020 · 1 comment
Open

MathJax support does not seem to be working #26

Ptival opened this issue Jun 15, 2020 · 1 comment

Comments

@Ptival
Copy link

Ptival commented Jun 15, 2020

I'm not sure whether there's something special to do, but checking out this repo and serving it, I don't see the math rendered in the "Advanced examples" post.

@salisquraishi
Copy link

Hi,

Inline formula not rendering correctly.

I mean $\hat{p}$ should be rendered inline and $$\hat{p}$$ in block or display mode.

Below fix works, but I don't know how to make it work for all pages.

<!doctype html>

<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/contrib/auto-render.min.js"></script>
The formula $a^2+b^2=c^2$ will be rendered inline, but $$a^2+b^2=c^2$$ will be rendered as a block element.

The formula \(a^2+b^2=c^2\) will be rendered inline, but \[a^2+b^2=c^2\] will be rendered as a block element.
<script> renderMathInElement( document.body, { delimiters: [ {left: "$$", right: "$$", display: true}, {left: "\\[", right: "\\]", display: true}, {left: "$", right: "$", display: false}, {left: "\\(", right: "\\)", display: false} ] } ); </script>

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

2 participants