* [Caml-list] How can I use mathematics with omd's markdown
@ 2016-05-14 19:29 Hendrik Boom
2016-05-14 20:17 ` Hendrik Boom
0 siblings, 1 reply; 2+ messages in thread
From: Hendrik Boom @ 2016-05-14 19:29 UTC (permalink / raw)
To: caml-list
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?
-- hendrik
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] How can I use mathematics with omd's markdown
2016-05-14 19:29 [Caml-list] How can I use mathematics with omd's markdown Hendrik Boom
@ 2016-05-14 20:17 ` Hendrik Boom
0 siblings, 0 replies; 2+ messages in thread
From: Hendrik Boom @ 2016-05-14 20:17 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-14 20:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-14 19:29 [Caml-list] How can I use mathematics with omd's markdown Hendrik Boom
2016-05-14 20:17 ` Hendrik Boom
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).