Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tex markdown code block with matrix not rendering #15686

Open
PhilipYip1988 opened this issue Jan 24, 2024 · 2 comments
Open

tex markdown code block with matrix not rendering #15686

PhilipYip1988 opened this issue Jan 24, 2024 · 2 comments

Comments

@PhilipYip1988
Copy link

Description

A markdown or notebook file that includes a tex codeblock with a matrix does not render properly in the markdown preview (both in the markdown and notebook files). It is the code block of the tex code that does not render, the equation itself renders correctly (see screenshot):

```tex
$$ \begin{bmatrix}
   \end{bmatrix} $$
```

Does not render the tex codeblock properly instead displaying something like:

$$ @@0@@ $$

where the number is the number of the code block inserted.

img_001

Reproduce

Create a new markdown file.

Input:

```tex
$$ \begin{bmatrix}
   \end{bmatrix} $$
```

View markdown preview.

```tex
$$ \begin{bmatrix}
   a&b&c
   \end{bmatrix} $$
```

The same issues persist for a row vector:

```tex
$$ \begin{bmatrix}
   a & b & c
   \end{bmatrix} $$
```

Column vector:

```tex
$$ \begin{bmatrix}
   a \\
   b \\
   c \\
   \end{bmatrix} $$
```

Matrix:

```tex
$$ \begin{bmatrix} 
   a & b & c \\
   c & d & d \\
   e & f & g \\
   \end{bmatrix} $$
```

and different matrix types matrix, bmatrix, pmatrix and vmatrix.

Other tests such as the sum and integral seem to work correctly. If useful the markdown file containing tex code blocks is available markdown tutorial.

Expected behavior

Removing the programming language in the code block tex displays the code block correctly but removes syntax highlighting:

```
$$ \begin{bmatrix}
   \end{bmatrix} $$
```

Context

  • Operating System and version: Windows 11 23H2
  • Browser and version: Edge 120.0.2210.144
  • JupyterLab version: 4.0.11
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Jan 24, 2024
@krassowski krassowski added this to the 4.0.x milestone Jan 24, 2024
@krassowski krassowski modified the milestones: 4.0.x, 3.6.x Jan 24, 2024
@krassowski
Copy link
Member

I can repro this in 3.6.3

@krassowski
Copy link
Member

Related to #8734

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

No branches or pull requests

3 participants