Markdown-preview-enhanced: support ```language (in addition to ```{language}

Created on 6 Dec 2016  路  2Comments  路  Source: shd101wyy/markdown-preview-enhanced

since other markdown interpreters are starting to use the syntax
```language (like ```mermaid ) to render content blocks
to enhance portability of our .md documents i ask:

couldn't markdown-preview-enhanced automatically interpret ```mermaid like it was ```{mermaid} if it's just a single word?

the {} are good if we have to pass parameters (and here only markdown-preview-enhanced can interpret them)

what do you think?

Most helpful comment

Hi @StefanoCecere @okwolf @8-uh @Michael-Thibault , sorry for my super late reply.

Now both ```mermaid and '''@mermaid will render mermaid graphs. (Same for plantuml, viz, and wavedrom)
If you only want '''@mermaid to work, disable Use standard code fencing for graphs in settings of this package.

Cheers

All 2 comments

Hi @StefanoCecere @okwolf @8-uh @Michael-Thibault , sorry for my super late reply.

Now both ```mermaid and '''@mermaid will render mermaid graphs. (Same for plantuml, viz, and wavedrom)
If you only want '''@mermaid to work, disable Use standard code fencing for graphs in settings of this package.

Cheers

Thanks @shd101wyy! I was using this syntax for compatibility with the mermaid plugin for GitBook FYI:

```mermaid
graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
```
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ckdanny picture ckdanny  路  5Comments

rcmalli picture rcmalli  路  4Comments

AdamBear-Me picture AdamBear-Me  路  5Comments

franklin373 picture franklin373  路  4Comments

xu4wang picture xu4wang  路  5Comments