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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is conversion of markdown with mathjax supported? #194
Sorry, I meant katex; anyways, I guess it is very easy to implement. source: stackoverflow
Whenever you see $$ or $$$$ in the markdown, just enclose it in a p tag (or any tag really).
So, this: "Hello, there this is $2=3\frac{2}{\pi}$ an inline comment, $$ 3 \neq 5$$ is not inline"
Is in html:
<p>Hello, there this is $2=3\frac{2}{\pi}$ an inline comment, $$ 3 \neq 5$$ is not inline</p>
// if the html make use of katex, this has to be inserted at the bottom of the body tag:
<script>
$(document).ready(function () { // this need jquery
renderMathInElement(document.body, {
// ...options...
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\[", right: "\\]", display: true }
]
});
});
</script>
Sounds like this can be done purely in JS on the resulting HTML, so no specific support is needed within commonmark-java. Let me know if that works for you.
Activity
[-]Can it convert markdown with mathjax ?[/-][+]Is conversion of markdown with mathjax supportedac?[/+][-]Is conversion of markdown with mathjax supportedac?[/-][+]Is conversion of markdown with mathjax supported?[/+]robinst commentedon Dec 3, 2020
No. Can you point to other implementations that support it? I'd like to see what syntax they use and how they output it.
Sebastian-Nielsen commentedon Dec 3, 2020
Sorry, I meant katex; anyways, I guess it is very easy to implement. source: stackoverflow
Whenever you see $$ or $$$$ in the markdown, just enclose it in a p tag (or any tag really).
So, this: "Hello, there this is$2=3\frac{2}{\pi}$ an inline comment, $$ 3 \neq 5$$ is not inline"
Is in html:
robinst commentedon Dec 11, 2020
Sounds like this can be done purely in JS on the resulting HTML, so no specific support is needed within commonmark-java. Let me know if that works for you.