asciidoctor / asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)
https://intellij-asciidoc-plugin.ahus1.de/
Apache License 2.0
357 stars 146 forks source link

Mermaidjs preview #1280

Open themr0c opened 1 year ago

themr0c commented 1 year ago

Some mermaidjs features are not properly rendered in the preview, such as:

For example:

[mermaid,target=mermaid-example,theme=forest]
....
flowchart
exemple(fa:fa-spinner Example node with a font-awesome spinner)
....

Observed preview:

Screenshot from 2023-01-20 12-10-27

Expected preview would be the same as the output of asciidoctor mermaid.adoc -r asciidoctor-diagram:

mermaid-example

themr0c commented 1 year ago

Workaround for the theme: define style options inside the diagram.

[mermaid,target=mermaid-example]
....
%%{init: {'theme' : 'forest'}}%%
flowchart
exemple(fa:fa-spinner Example node with a font-awesome spinner)
....