Skip to content

Markdown's code highlight, math and Mermaid support are broken in VS Code #446

@Chaoses-Ib

Description

@Chaoses-Ib
import solara

@solara.component
def Page():
    solara.Markdown(r'''
# Large
## Smaller

## List items

* item 1
* item 2

## Math
Also, $x^2$ is rendered as math.

Or multiline math:
$$
\int_0^1 x^2 dx = \frac{1}{3}
$$

## Code highlight support
```python
code = "formatted" and "supports highlighting"
```


## Mermaid support!
See [Mermaid docs](https://mermaid-js.github.io/)

```mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```
''')

Page()

image

vscode-jupyter version: v2024.1.100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions