Skip to content

gitlab math delimiters no longer working  #129

Description

@rjmigliori

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions