Skip to content
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

Mermaid diagrams text not exported into PDF #1771

Open
hajdusp opened this issue Jan 22, 2025 · 1 comment
Open

Mermaid diagrams text not exported into PDF #1771

hajdusp opened this issue Jan 22, 2025 · 1 comment
Labels

Comments

@hajdusp
Copy link

hajdusp commented Jan 22, 2025

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)

@hajdusp hajdusp added the bug label Jan 22, 2025
@hajdusp
Copy link
Author

hajdusp commented Jan 22, 2025

If I use [mermaid, format=png] it works as expected, only the .svg format fails to export properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant