pomdtr / vscode-markdown-kroki

Adds Kroki support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=pomdtr.markdown-kroki
MIT License
21 stars 7 forks source link

Please support whitespace after the ticks #5

Closed nolange closed 5 months ago

nolange commented 1 year ago

Hello,

your parser is really picky, it should ignore whitespaces, or rather eat additional ones in the text following the "ticks". The vscode parser seems to do the right thing, still detecting the code blocks, but your plugin will refuse for ex. the following:

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

(whitespace behind `mermaid`)
```mermaid 
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```

Commonmark has some Examples on what to expect.

Airkro commented 8 months ago

it should support parse markdown code fence meta:

```mermaid custom meta, can be anything
pomdtr commented 5 months ago

fixed in v1.1.1