From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24961 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Bower Newsgroups: gmane.text.pandoc Subject: Proper syntax or format to convert markdown to html when mathjax is in the md Date: Thu, 23 Apr 2020 04:27:08 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1394_1147712196.1587641228060" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="93817"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCXPDROT4UJRBDPXQX2QKGQE453HVOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Apr 23 13:27:12 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jRa0e-000OIZ-1j for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Apr 2020 13:27:12 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id h33sf3568022oth.20 for ; Thu, 23 Apr 2020 04:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=/PlSBfgmo4fBmQgkI5nf6yaUfqe7xEFZ81qnmDTJ38A=; b=jlbpRO3rsDym3qchLhO/MAfbxF7KozDG94n099vmab/K53dpK63ldYEsIFf9Kqx9TP MbjDm0pmQGO1NZpnXWEtzPq9LzmruTH+y9YlpEQZkm1nljFftAw1FfCd9kV5hlogcGCf udqYbAWwnqqAt2Ev7kCXtyhhA0/VGkBiFJ9ejK3KjH+TSX8B+he+YVkyNDinQpFNUKes YuoMakFRf6Bfq/fy8dD2/P2WNkVCnyQb1nOXtEREdg1NIYs4/rVVcDlMTPNW911lqdkV abeTre3jynPK4EVf1Vmj0m9PP5j801uGYDcdSbDfrdx8Es3SHZZrTVB38xAn+R7QaFzx myAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=/PlSBfgmo4fBmQgkI5nf6yaUfqe7xEFZ81qnmDTJ38A=; b=HHB1BbUvpwJJA+xUWpdzrgJPDExEv4LmheSFuviOwtsIKwLTyjkx9sJ4FEQlPLGwHr HVTCfHre4aNL333q8OhtS1cDejCda3mkwUYw9GizY+d35dgxmtebjJc8eadCX2I19S4n Bk55NCVTVkat76F6JOQllE4xZVhF9jfhy/ighFYBWsOo6FPWXBSnV8IqnrYCE60Ivhkb 5zcuqX9r89tAl7ILDklWk7K2mx9ZpxIYP5PvDUjvA6jBd/qr6jm+G+/M98Z2ORkVGa2A sfzKRAAGSVbbmCAEH6U34VXVxrUBX0QSlkXrWSrrwka/tEW0UpotwCxbBLhmYItHJSJv cyAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=/PlSBfgmo4fBmQgkI5nf6yaUfqe7xEFZ81qnmDTJ38A=; b=QOqDGn1rQT14IFs9x7JsAHRqhwh7R3/8fyRGa3nOmJTRT8p90+r3NSnuXRdWvK+xIh udVxRFJom3O0DkuWMprmCEcDYxRJPxMxtCCqDjeHVc459vf0SB/0K/6hgD6uEHsJz8CB XA6GuiDxyIPVlo+ty54oPYF9t+WH/YrcOMkjOaU/TAgjgfGlWVKzr8U2H/S+WOLOO/Ey NcfYSNh3vZZrQh/+7N2J65FrID68UIVdJf0T40V8yDL9DG/YanjThFbyC3mVpqo9P1n1 u/4duxaNWejLUH4aztCZqjeyFVKcOoRlH8LtZdHhyprNwjMU2T8XH6sUSxmHZrgauDpr vOoA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PuYwNoaDnbeeLsyBNYlwssZrDdEQFrpWRViHq+4BJdnpvrS5prM1 GpN9Sp7kagKqbhLi2clQbhY= X-Google-Smtp-Source: APiQypJqIqUW4HhFdUmJdVEWce9Y4hok2Fn36pGZkps8T9Rjn+cJsvfQ9cGfRvtlFt7JCenoyLQfSQ== X-Received: by 2002:a9d:19af:: with SMTP id k44mr2913567otk.80.1587641231054; Thu, 23 Apr 2020 04:27:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:49cc:: with SMTP id w195ls767042oia.10.gmail; Thu, 23 Apr 2020 04:27:08 -0700 (PDT) X-Received: by 2002:aca:f384:: with SMTP id r126mr2476522oih.41.1587641228586; Thu, 23 Apr 2020 04:27:08 -0700 (PDT) X-Original-Sender: frrobert2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:24961 Archived-At: ------=_Part_1394_1147712196.1587641228060 Content-Type: multipart/alternative; boundary="----=_Part_1395_716273951.1587641228060" ------=_Part_1395_716273951.1587641228060 Content-Type: text/plain; charset="UTF-8" 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.

\( {x = \frac{{ - b \pm \sqrt {b^2 - 4ac} }}{{2a}}} \)

Here is the syntax I use: pandoc --mathjax Math2.md -o Math2md.html Here is what I get: I find this an easy way to post information for students. > > ( {x = } ) > If I look at source the javascript is there it is the If I save the same document in wiki format and run pandoc --mathjax Math2.wiki -o Math2wiki.html The page renders correctly. Is there a different command line switch I should use when converting from markdown or something I need to add to the markdown? Thanks -- 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/c99ef396-3c58-42ea-bdab-5807bb099248%40googlegroups.com. ------=_Part_1395_716273951.1587641228060 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes,

I am having trouble con= verting markdown to html when I have mathjax in the markdown document.

Here is the source of the markdown

I = find this<= /span> an easy wa= y to post information for students.
<= br>
<script type=3D"text/javascri= pt" a= sync
=C2=A0 src
=3D"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?confi= g=3DTeX-MML-AM_CHTML">
=C2=A0
</script>
<p>
\( =C2=A0{x =3D \frac{{ - b \pm \sqrt {b^2= - 4ac} }}{{2a}}} \)
</
p>



Here is the = syntax I use:

pandoc --mathjax Math2.md -o Math2md= .html

Here is what I get:

I find this an e= asy way to post information for students.

( {x =3D } )=C2=A0

If I look at source the javascript is there = it is the

If I save the same document in wiki= format and run

pandoc --mathjax Math2.wiki -= o Math2wiki.html

The page renders correctly.
=

Is there a different command line switch I should use w= hen converting from markdown or something I need to add to the markdown?

Thanks

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/c99ef396-3c58-42ea-bdab-5807bb099248%40googlegroups.co= m.
------=_Part_1395_716273951.1587641228060-- ------=_Part_1394_1147712196.1587641228060--