Skip to content

Mermaid diagrams text not exported into PDF #1771

Open
@hajdusp

Description

@hajdusp

Forewords

  • The plugin is great btw!
  • Thank you!

Observed vs. expected behavior

Observed behavior

  • When I place mermaid diagrams into the .adoc files, the shapes and the texts appear as expected in the preview.
  • But, when I export the file into .pdf via the PDF button, the exported .pdf contains only the shapes of the diagram but not the texts.

Expected behavior

  • When I export the file into .pdf via the PDF button, the exported .pdf contains both the shapes and the texts of the diagram.

Steps to reproduce

[mermaid, format=svg]
....
graph TD
    A[Component State] --> B{Change Detection Strategy}
    B -->|Default| C[Check EVERYTHING every time]
    B -->|OnPush| D[Check ONLY when Inputs change or Async events occur]

    C --> E[Slower performance]
    D --> F[Faster performance]

    style A fill:#f9f,stroke:#333,stroke-width:2px
    style B fill:#bbf,stroke:#333,stroke-width:2px
    style C fill:#fbb,stroke:#333,stroke-width:2px
    style D fill:#bfb,stroke:#333,stroke-width:2px
    style E fill:#ffb,stroke:#333,stroke-width:2px
    style F fill:#bfb,stroke:#333,stroke-width:2px
....

Environment

Plugin Version: 0.43.6

PyCharm Details: PyCharm 2024.3.1.1 (Community Edition)
Build #PC-243.22562.220, built on December 18, 2024
Runtime version: 21.0.5+8-b631.28 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.2
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
ide.experimental.ui=true
i18n.locale=
llm.show.ai.promotion.window.on.start=false
Non-Bundled Plugins:
com.tabnine.TabNine (1.191.0)
org.asciidoctor.intellij.asciidoc (0.43.6)
com.intellij.mermaid (0.0.24+IJ.243)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions