goessner / markdown-it-texmath

Support TeX math equations with your Markdown documents.
MIT License
161 stars 29 forks source link

Support Doxygen formula delimiters #28

Closed arwedus closed 3 years ago

arwedus commented 4 years ago

Summary

Support Doxygen formula delimiter syntax.

Expected behavior

Add the following syntax option:

name: "doxygen"
inline formula: \f$...\f$
block formula: \f[ ... \f]

The "environment style" \f{env}{...\f} does not need to be supported at the moment.

Actual behavior

Currently the style of Doxygen is not supported. This is too bad, because Markdown documents can be parsed by Doxygen with Doxygen's advanced syntax.

Code example

The formula \f$v_{x} = 0\f$ shall be shown rendered by Katex in the VS code preview.

\f[
1 + 1 = 2
\f]

Related links

Environment

     Operating system: ___
       VSCode version: ___
Markdown+Math version: ___
arwedus commented 3 years ago

Has this feature been added with a newer release?