Skip to content

Mermaid flowchart-elk no longer works in 1.10.2-dev #6174

@nanoant

Description

@nanoant
  • 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
1.10.1 dev version updates mermaid to 11.3. However since 11.0 Mermaid no longer embeds elkjs (see https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0 release notes) and sites/apps must install @mermaid-js/layout-elk see mermaid-js/mermaid#5049

To Reproduce
Steps to reproduce the behavior:

  1. Use flowchart-elk on stable 1.9
  2. Observe flowchart-elk it gives different results than flowchart
  3. Update to 1.10.2 dev version
  4. Observe that flowchart-elk looks exactly the same as flowchart using default Dagre engine

Expected behavior
image

Screenshots / Screencasts
What is see in 1.10.2-dev:
image

Sample Markdown File

~~~mermaid
flowchart-elk TB
A --> B((What))
A --> C
A --> D
~~~

Desktop (please complete the following information):

  • OS: Mac & Windows

Typora Version
1.10.2-dev (7283) Mac, 1.10.1-dev Windows (since 1.10.2 is not available for Windows)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions