mmark-ext-0.2.1.2: Commonly useful extensions for the MMark markdown processor

Copyright© 2018 Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov92@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.MMark.Extension.MathJax

Description

Turn code spans and fenced code blocks into MathJax formulas.

Since: 0.1.1.0

Synopsis

Documentation

mathJax Source #

Arguments

:: Maybe Char

Starting/ending character in MathJax inline spans

-> Extension 

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).