Support standard KaTeX math delimiters
Description
Currently math markup requires use of
$`e^x`$
syntax for inline math markup (e.g. e^x
)
and fenced code block with language id math
for block mode math markup:
~~~math
\int e^t dt
~~~
Neither of these syntaxes is widely supported in external Markdown editors, which makes it difficult to use such math expressions when they may be edited or viewed other than through the gitlab web interface.
Proposal
Support the standard default math markup delimiters supported by the KaTeX autorender extension, which are supported by a number of markdown editors and converters and are more consistent with standard LaTeX syntax:
inline: $$...$$
inline: \\(...\\)
block: \\[...\\]
So that the previous examples could be written:
$$e^x$$
or
\\(e^x\\)
and
\\[ \int e^t dt \\]
Links / references
KaTeX autorender README: https://github.com/Khan/KaTeX/blob/master/contrib/auto-render/README.md
survey of markdown math syntaxes: https://github.com/cben/mathdown/wiki/math-in-markdown