* use mathjax render formula in a class without delimiters
@ 2023-01-13 8:48 redsto...-9Onoh4P/yGk@public.gmane.org
0 siblings, 0 replies; only message in thread
From: redsto...-9Onoh4P/yGk@public.gmane.org @ 2023-01-13 8:48 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2039 bytes --]
I use markdown_it
<https://markdown-it-py.readthedocs.io/en/latest/using.html> to convert my
Markdown to html, the converted formula lost its delimiters, which caused
my mathjax cannot render the formula, my mathjax confirmation is :
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script type="text/javascript"> var MathJax = { tex: { inlineMath: [
["\\(","\\)"] ], displayMath: [ ["\\[","\\]"] ], processEscapes: true,
processEnvironments: true }, options: { ignoreHtmlClass: ".*|",
processHtmlClass: "math" } }; </script>
The HTML:
<p>a rational number like <span class="math inline">\begin{matrix} L &
\ = \{ x \mid x \in \mathbb{Q},x \leq 0\} \cup \left\{ x \mid x \in
\mathbb{Q},x > 0,x^{2} < 2 \right\} \\ U & \ = \mathbb{Q} - L =
\left\{ x \mid x \in \mathbb{Q},x > 0,x^{2} > 2 \right\} \\
\end{matrix}</span> .<br /> 2. A fact between two Dedekind cuts(the density
of <span class="math inline">Q</span> in <span class="math
inline">R</span>): For any pair of real numbers <span class="math
inline">\alpha</span> and <span class="math inline">\beta</span>, where
<span class="math inline">\alpha > \beta</span>, there can always be
found a real, and even in particular a rational, number <span class="math
inline">r</span> which lies between them, i.e. <span class="math
inline">\alpha > r > \beta</span> (and, consequently, an infinite set
of such rational numbers).</p>
The demo:https://jsbin.com/qecewiz/edit?html,output
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/31ac620c-0950-4370-aa34-7031d3ae0092n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2735 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-13 8:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 8:48 use mathjax render formula in a class without delimiters redsto...-9Onoh4P/yGk@public.gmane.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).