From: Hendrik Boom <hendrik@topoi.pooq.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] How can I use mathematics with omd's markdown
Date: Sat, 14 May 2016 16:17:19 -0400 [thread overview]
Message-ID: <20160514201719.GA31835@topoi.pooq.com> (raw)
In-Reply-To: <20160514192948.GA27326@topoi.pooq.com>
On Sat, May 14, 2016 at 03:29:49PM -0400, Hendrik Boom wrote:
> Evidently it's possible to use mathematicl notation with omd.
>
> Ths issue
>
> https://github.com/ocaml/omd/issues/107
>
> contains some clues how to do it. But when I do it, all I get is the
> Latex code in the webpage.
>
> Not surprising, because it says that mathjax will further convert it,
> and I haven't invoked mathjax nor do I know how.
>
> I this something that has to be specified on the omd command --
> presumably some pre or post processor?
>
> Or is there some other mechanism to do the remaining translation?
Partial solution:
I have to prepend the following to the generated html file:
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
If I do this, both forms mentioned in issue 107 work, but the one with
the double dollar signs works without the extra backslashes, and is
*much* more readable in the source code.
Is there some way to get omd to prefix that script to its output, os do
I have to send it into a temporary file and prepend it with the cat
shell command?
-- hendrik
prev parent reply other threads:[~2016-05-14 20:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-14 19:29 Hendrik Boom
2016-05-14 20:17 ` Hendrik Boom [this message]
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=20160514201719.GA31835@topoi.pooq.com \
--to=hendrik@topoi.pooq.com \
--cc=caml-list@inria.fr \
/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).