Copyright | © 2018 Mark Karpov |
---|---|
License | BSD 3 clause |
Maintainer | Mark Karpov <markkarpov92@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Turn code spans and fenced code blocks into MathJax formulas.
Since: 0.1.1.0
Documentation
The extension allows to transform inline code spans into MathJax inline
spans and code blocks with the info string "mathjax"
(case-sensitive)
into MathJax display spans. Every line in such a code block will produce
a separate display span, i.e. a separate line with a formula (which is
probably what you want anyway).
The first argument is the character that must be the first and the last
character in code spans for them to be recognized as MathJax markup. If
Nothing
is passed instead of a char, we apply the transformation to all
code spans (useful for more academic articles that do not deal with
code).