mdmath icon indicating copy to clipboard operation
mdmath copied to clipboard

gitlab math delimiters no longer working

Open rjmigliori opened this issue 2 years ago • 0 comments

Summary

gitlab Delimiters no longer working

Expected behavior

Specifying "mdmath.delimiters": "gitlab", in settings.json and then blocking code out with ```math ... ```` delimiters would render LaTeX blocks as math in markdown preview.

Actual behavior

LaTeX blocks render as code blocks in markdown preview.

Steps to reproduce

  1. Set "mdmath.delimiters": "gitlab", in settings.json
  2. Write some LaTeX code in a ```math ... ```` block
  3. Preview markdown code with Markdown All In One Plugin (I think, unless it's using the native markdown preview support in vscode).

Code example

```math
\begin{align}
\begin{split}
R_x(\theta) &= 
\left[\!\begin{array}{c c c}
{1} & {0} & {0}\\
{0} & {\cos\theta} & {-\sin\theta}\\
{0} & {\sin\theta} & {\cos\theta}
\end{array}
\!\right]\\
\\
R_y(\theta) &= \left[\!\begin{array}{c c c}
{\cos\theta} & {0} & {\sin\theta}\\
{0} & {1} & {0}\\
{-\sin\theta} & {0} & {\cos\theta}
\end{array}
\!\right] \\
\\
R_z(\theta) &= \left[\!\begin{array}{c c c}
{\cos\theta} & {-\sin\theta} & {0}\\
{\sin\theta} & {\cos\theta} & {0}\\
{0} & {0} & {1}
\end{array}
\!\right] 
\end{split}
\end{align}

### Related links

* [Markdown+Math](https://github.com/goessner/mdmath)

### Environment
- Operating system: Windows 11 with remote desktop connection to Ubuntu 22.04 
- VSCode version: 1.84.2
- Markdown+Math version: 2.7.4

rjmigliori avatar Nov 09 '23 19:11 rjmigliori