Skip to content

Direction applies to all class diagrams in a markdown file #116

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

Open
lonix1 opened this issue Sep 8, 2021 · 0 comments
Open

Direction applies to all class diagrams in a markdown file #116

lonix1 opened this issue Sep 8, 2021 · 0 comments

Comments

@lonix1
Copy link

lonix1 commented Sep 8, 2021

When there are multiple class diagrams in a single markdown file, the same direction is applied to all of them.

e.g.

## Title

```mermaid
classDiagram
  direction RL
  A <|-- B
```

## Title

```mermaid
%% this class diagram will also have direction RL
classDiagram
  Animal <|-- Dog
```

The workaround is to redeclare the direction for every diagram. Not nice.

I'm unsure whether this is a problem in the extension, or the underlying mermaid library?

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

2 participants