From: Jeremy Theler <jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Proper syntax or format to convert markdown to html when mathjax is in the md
Date: Thu, 23 Apr 2020 10:24:34 -0300 [thread overview]
Message-ID: <c3d7739d9e45093376c9e68328362b2aeac7b02e.camel@seamplex.com> (raw)
In-Reply-To: <614001ec-12cb-b635-842c-e483aad42044-Jdbf3xiKgS8@public.gmane.org>
What about
I find this an easy way to post information for students.
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
--
jeremy theler
www.seamplex.com
On Thu, 2020-04-23 at 09:19 -0400, Daniel Staal wrote:
> On 4/23/20 7:27 AM, Robert Bower wrote:
> > Yes,
> >
> > I am having trouble converting markdown to html when I have mathjax
> > in the markdown document.
> >
> > Here is the source of the markdown
> >
> > I find this an easy way to post information for students.
> >
> > <script type="text/javascript" async
> > src="
> > https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML
> > ">
> > </script>
> > <p>
> > \( {x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}} \)
> > </p>
> >
>
> Script elements don't get considered as Markdown, and I think that's
> dropping you out here. What you need is to make it explicit that
> the
> block is HTML, using a raw_attribute block:
>
> ---
> I find this an easy way to post information for students.
>
> ```{=html}
> <script type="text/javascript" async
>
> src="
> https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML
> ">
> </script>
> <p>
> \( {x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}} \)
> </p>
> ```
> ---
>
> Daniel T. Staal
>
> --
> ---------------------------------------------------------------
> This email copyright the author. Unless otherwise noted, you
> are expressly allowed to retransmit, quote, or otherwise use
> the contents for non-commercial purposes. This copyright will
> expire 5 years after the author's death, or in 30 years,
> whichever is longer, unless such a period is in excess of
> local copyright law.
> ---------------------------------------------------------------
>
>
next prev parent reply other threads:[~2020-04-23 13:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 11:27 Robert Bower
[not found] ` <c99ef396-3c58-42ea-bdab-5807bb099248-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-23 13:19 ` Daniel Staal
[not found] ` <614001ec-12cb-b635-842c-e483aad42044-Jdbf3xiKgS8@public.gmane.org>
2020-04-23 13:24 ` Jeremy Theler [this message]
[not found] ` <c3d7739d9e45093376c9e68328362b2aeac7b02e.camel-24em0bpozeFWk0Htik3J/w@public.gmane.org>
2020-04-23 20:52 ` Robert Bower
2020-04-23 20:54 ` Robert Bower
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=c3d7739d9e45093376c9e68328362b2aeac7b02e.camel@seamplex.com \
--to=jeremy-24em0bpozefwk0htik3j/w@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).