Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid code highlighting when using flowchart #5196

Open
3 tasks done
Lakitna opened this issue Apr 22, 2022 · 2 comments
Open
3 tasks done

Mermaid code highlighting when using flowchart #5196

Lakitna opened this issue Apr 22, 2022 · 2 comments

Comments

@Lakitna
Copy link

Lakitna commented Apr 22, 2022

  • Searched existing issues to avoid creating duplicates.

  • 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.

  • 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:

  1. Create a code block with language mermaid
  2. 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)
image

Chart type flowchart (renders properly, but no code highlighting)
image

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):

  • OS: Windows 11 64bit

Typora Version
e.g: 1.2.5

@tennr
Copy link

tennr commented Jun 8, 2022

this happens on macOS 12.4 as well; dev 1.3.3

@nanoant
Copy link

nanoant commented Jun 10, 2022

Same here, both Windows 10 and macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants