jupyter-book / jupyterlab-myst

Use MyST Markdown directly in Jupyter Lab
https://jupyter-book.github.io/jupyterlab-myst/
BSD 3-Clause "New" or "Revised" License
140 stars 17 forks source link

Mermaid now rendered natively by JupyterLab 4.1 and Notebook 7.1 #226

Closed psychemedia closed 6 months ago

psychemedia commented 7 months ago

Description

Jupyterlab-myst originally added the ability to render mermaid diagrams, but the markdown renderer in JupyterLab 4.1/Notebook 7.1 now do this natively: https://jupyterlab.readthedocs.io/en/latest/getting_started/changelog.html#diagrams-in-markdown

The JupyterLite demo seems to be removing jupyterlab-myst with the update to JL4.1/nb7.1 because of a clash between native handling of mermaid diagram descriptions and how jupyterlab-myst handles them:

psychemedia commented 7 months ago

I note that the native (JupyterLab4.1/notebook 7.1) handling follows GFM and uses the syntax:

```mermaid
flowchart LR

A[Hard] -->|Text| B(Round)

rather than:
flowchart LR

A[Hard] -->|Text| B(Round)
rowanc1 commented 6 months ago

image

image

This is fixed in 2.4.0!