webappdevelp / hexo-filter-mermaid-diagrams

mermaid diagrams for hexo
86 stars 27 forks source link

Escape three backticks with mermaid in code block #3

Open liaosankai opened 5 years ago

liaosankai commented 5 years ago

I want describe how to use mermaid in hexo, I write this in my markdown file

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

preview and get seems problem result as

<pre class="mermaid">graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;</pre>

I try write this one with another language

~~~
```php
<?php
    echo phpinfo();
```
~~~

preview and get working result:

```php
<?php
    echo phpinfo();
```

I'm not sure hexo or plugin which side is wrong.