[x] Searched existing issues to avoid creating duplicates.
[x] Confirmed that it can be reproduced in built-in themes without customized css.
If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.
Mermaid code blocks are great. When using most diagram types, the code highlights properly too.
However, code highlighting is broken for the diagram type flowchart. Rendering of the diagram does work properly.
To Reproduce
Steps to reproduce the behavior:
Create a code block with language mermaid
Create a diagram of type flowchart
Expected behavior
I expect code highlighting to work for all supported diagram types.
Screenshots / Screencasts
Chart type graph (works as expected)
Chart type flowchart (renders properly, but no code highlighting)
Sample Markdown File
```mermaid
graph LR
P[Provider]
PC[Provider Contract]
CC[Consumer Contract]
C[Consumer]
P --- PC
PC --> CC --> PC
CC --- C
```
```mermaid
flowchart LR
P[Provider]
PC[Provider Contract]
CC[Consumer Contract]
C[Consumer]
P --- PC
PC --> CC --> PC
CC --- C
```
Desktop (please complete the following information):
[x] Searched existing issues to avoid creating duplicates.
[x] Confirmed that it can be reproduced in built-in themes without customized css.
If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.
[x] Searched http://support.typora.io/
Describe the bug
Mermaid code blocks are great. When using most diagram types, the code highlights properly too.
However, code highlighting is broken for the diagram type
flowchart
. Rendering of the diagram does work properly.To Reproduce Steps to reproduce the behavior:
mermaid
flowchart
Expected behavior I expect code highlighting to work for all supported diagram types.
Screenshots / Screencasts
Chart type
graph
(works as expected)Chart type
flowchart
(renders properly, but no code highlighting)Sample Markdown File
Desktop (please complete the following information):
Typora Version e.g: 1.2.5