mdmath allows to use Visual Studio Code as a markdown editor capable of typesetting and rendering TeX math. In fact it now reuses the built in markdown viewer. KaTeX works inside as a fast math renderer.
Simplify the process of authoring and live previewing markdown documents containing math formulas. This extension is a comfortable tool for scientists, engineers and students with markdown as their first choice document format.
Inline math with tables
Export resulting HTML code for web usage
What is new in mdmath 2.0 ...
Integrated in native markdown viewer. So after installing the extension, TeX math is properly displayed in the markdown preview window.
What if I need to use the currency symbol $ also in my markup ?
It should be safe to use it. If in doubt escape it.
What are the restrictions with inline formulas ?
Whitespace after opening $ and before closing $ is not allowed.
Numeric character before opening $ and after closing $ is not allowed.
At least one character (whitespace ?) is required between two consecutive inline formulas.
Line break inside is not allowed.
What are the restrictions with display formulas ?
Not allowed inline of text.
Blank lines before and behind required.
Restrictions for inline formulas do not apply.
Can I use math markup in blockquotes ?
We can use inline and display formulas in blockquote sections. In order to avoid the blockquote symbol '>' being part of a multiline display formula, display formulas have to be written on a single line in blockquote sections.
Can I use math markup in code blocks ?
No, math markup in code blocks is shown - as expected - as markup. This is consistent now, but in contrast to mdmath versions prior to 2.0.
Can I access the HTML source of the markdown file ?
Yes. Use the Markdown: Clip Markdown+Math to Html command or the key binding ('ctrl+K .').
The markdown preview window has to be opened once for this in order to function properly.
You need to have the markdown source window activated here (not the preview window!).
Please note, that the resulting HTML source references 'CDN'-located remote css files. Change those references to local URL's if necessary.
Is PDF output supported ?
Not directly. In order to create *.pdf output from your Markdown you can create a *.html document first and print it then using a PDF printer or use Pandoc.