Adds support for Github-style fenced math blocks in markdown editor and preview
VSCode markdown editor now syntactically highlights fenced math blocks. Katex rendering now supports fenced math blocks. They must be of the form
//math goes here
resolves #174731
@microsoft-github-policy-service agree
With the latest commits the code changes are only located in markdown-math.
I added a custom parser for fenced math blocks based on the original markdown-it fence parser.
This approach was much simpler. I made these changes in @vscode/markdown-it-katex, and added tests. In markdown-math I set enableFencedBlocks to be true by default but there may be a better way to do this.
The PR to the katex library is here
I reverted all of the unnecessary changes from prior implementations. The main repo still needs the new syntax for syntax highlighting and enabling the fence option.
Please see new changes (ignore accidental git mess)