mjbvz / vscode-markdown-mermaid

Adds Mermaid diagram and flowchart support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid
MIT License
656 stars 120 forks source link

vs code for linux preview does not work with ```mermaid only with :::mermaid #233

Closed wege22 closed 8 months ago

wege22 commented 8 months ago

Hi,

I am using mermaid with "gitea" (only ``` works) and "vs code" (only \::: works) ... As mentioned by the documentation ``` should also work. image

Any suggestions - thanks in advance

wege22 commented 8 months ago

Additional information:


Version: 1.85.1 Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 Datum: 2023-12-13T09:47:11.635Z Electron: 25.9.7 ElectronBuildId: 25551756 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 Betriebssystem: Linux x64 6.1.64-08962-g29b897fe339a


Language: german


Markdown Preview Mermaid Support v1.21.0


OS: ChromeOS Beta 121 / Debian bookworm 12.4


gitea 1.21.3


All components are on the latest available version.

mjbvz commented 8 months ago

Works fine for me

Image

Can you share the full text of a file with this issue?

wege22 commented 8 months ago

Hi, thanks for your respone ... so the file is: image


:::mermaid flowchart LR A --> B :::

flowchart LR
    A --> B
flowchart LR
    A --> B

I've read some comments about vscode in azure to have some kind of problem, also eventually the german language might cause problems ... with standard lead-in characters vscode does not interpret this as a mermaid code its always a code block ... file below ... mermaid_vscode.md

... perhaps the problem is per definition / markdown-it ? ... image https://commonmark.org/help/

wege22 commented 8 months ago

SOLVED I've found the solution - I've got an other markdown plugin also active which interferred with your extension. markdown-higlightjs - Adds highlight.js mardown-it plugin to VSCode