git.iko.soy/typeable/pandoc
on master help sign in
--mathjax: Use mathjax with raw latex rather than mathml.

It seems to work better, and the default config can be used.

commitbd24e83c8188866d37c1468d948d44692e6547a4 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 31 Oct 2010, 18:55 (16 years ago) parent9cf27c9
2 files changed+4−17
README−5 src/Text/Pandoc/Writers/HTML.hs+4−12
README−5
@@ -347,11 +347,6 @@ For further documentation, see the `pandoc(1)` man page.
347347\--mathjax=*URL*
348348: causes `pandoc` to use [MathJax] to display embedded TeX math in HTML
349349 output. The *URL* should point to the `MathJax.js` load script.
350− Pandoc will use MathML with MathJax, so your `config/MathJax.js`
351− file should contain the following settings:
352−
353− extensions: ["mml2jax.js"],
354− jax: ["input/MathML", "output/HTML-CSS"],
355350
356351`--gladtex`*[=url]*
357352: causes TeX formulas to be enclosed in `<eq>` tags in HTML, Slidy, or
src/Text/Pandoc/Writers/HTML.hs+4−12
@@ -503,18 +503,10 @@ inlineToHtml opts inline =
503503 Left _ -> inlineListToHtml opts
504504 (readTeXMath str) >>= return .
505505 (thespan ! [theclass "math"])
506− MathJax _ -> do
507− let dt = if t == InlineMath
508− then DisplayInline
509− else DisplayBlock
510− let conf = useShortEmptyTags (const False)
511− defaultConfigPP
512− case texMathToMathML dt str of
513− Right r -> return $ primHtml $
514− ppcElement conf r
515− Left _ -> inlineListToHtml opts
516− (readTeXMath str) >>= return .
517− (thespan ! [theclass "math"])
506+ MathJax _ -> return $ primHtml $
507+ case t of
508+ InlineMath -> "\\(" ++ str ++ "\\)"
509+ DisplayMath -> "\\[" ++ str ++ "\\]"
518510 PlainMath -> do
519511 x <- inlineListToHtml opts (readTeXMath str)
520512 let m = thespan ! [theclass "math"] $ x