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

Incorrect when there is two classDiagram in one markdown file #84

Open
linyoubin opened this issue Jul 30, 2019 · 2 comments
Open

Incorrect when there is two classDiagram in one markdown file #84

linyoubin opened this issue Jul 30, 2019 · 2 comments
Labels
Windows Windows related issues

Comments

@linyoubin
Copy link

linyoubin commented Jul 30, 2019

If threre is two classDiagram in one markdown file, The second classDiagram is incorrect
(vscode:1.36.1 mermaid preview: 0.12.2)

Expected behaviour

classDiagram
Class1 <|-- Class2
Loading
classDiagram
Class4 <|-- Class3
Loading

Actual behaviour

图片

@vstirbu
Copy link
Collaborator

vstirbu commented Jul 30, 2019

Thanks for brining this thing up.

I'm not able to replicate the behaviour. Using the following snippet I get always a single diagram rendered when the cursor is inside the fence:

```mermaid
classDiagram

Class1 <|-- Class2
```


```mermaid
classDiagram

Class4 <|-- Class3
```

Based on your sample code it seems that you have a space between the fence ``` and mermaid. If that is correct you should not get any rendering. Anyway, there should not be two diagrams rendered in any case.

Can you post the exact markdown file you are trying to render, details about operating system, a better screen capture that shows also the title of the preview panel, maybe the console log? Anything that would help hunting down the source... Thanks!

@linyoubin
Copy link
Author

Thank you for you reply.

My OS is Windows 7 service pack1 64bit

Here is my screen capture and markdown file.
图片

My markdown file:
test.zip

@vstirbu vstirbu added the Windows Windows related issues label Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Windows Windows related issues
Projects
None yet
Development

No branches or pull requests

2 participants