vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
812 stars 129 forks source link

Mermaid not rendering #861

Open 123andy opened 4 years ago

123andy commented 4 years ago

I have phpStorm 2020.1 - in the markdown parser config I tried enabling mermaid or GitLab extensions. When enabled the preview looks different, but it is still is not rendering any objects - just text. Am I missing something?

image

mtancoigne commented 4 years ago

Hi !

Same here with Markdown Navigator Enhanced 3.0.197.72; RubyMine 2020.1 under Ubunutu 20.04.

The parser profile is set to Gitlab (so Gitlab charts option is ticked).

"Fix": I unchecked the group option for "Gitlab Flavored markdown", leaving the "Gitlab charts (mermaid)" option ticked, and the mermaid dependency was loaded in generated HTML.

Conclusion: Gitlab Flavored markdown options are not enabled when ticking the checkbox, but individually checking options works.

sourcec0de commented 4 years ago

Thinking about purchasing this plugin for my entire org via the Jetbrains marketplace. Love this plugin but the biggest selling point for me was the ability to generate diagrams using mermaid.

I'm encountering the same issue. Mermaid rendering doesn't function in my setup.

Markdown Navigator: 3.0.197.72 IntelliJ Ultimate: IntelliJ IDEA 2020.2 (Ultimate Edition) Build #IU-202.6397.94, built on July 27, 2020 Runtime version: 11.0.7+10-b944.20 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 10.15.6

I attempted @mtancoigne proposed workaround with no success.

vsch commented 3 years ago

Mermaid will work in JavaFX or JCEF browser preview. Latest release also has option for rendering to be done by Kroki.io server. The latter will allow rendering of mermaid files in Swing browser.

The reason is that embedded implementation requires JavaScript and Swing has no support.