From: "redsto...-9Onoh4P/yGk@public.gmane.org" <redstone-cold-9Onoh4P/yGk@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: use mathjax render formula in a class without delimiters
Date: Fri, 13 Jan 2023 00:48:43 -0800 (PST) [thread overview]
Message-ID: <31ac620c-0950-4370-aa34-7031d3ae0092n@googlegroups.com> (raw)
[-- 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 --]
reply other threads:[~2023-01-13 8:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=31ac620c-0950-4370-aa34-7031d3ae0092n@googlegroups.com \
--to=redstone-cold-9onoh4p/ygk@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).