Closed rserranon closed 1 year ago
This is a known limitation with prawn-svg. It does not support external SVG tags such as foreignObject (which is just wrapping HTML). If prawn-svg can't render it, then Asciidoctor PDF won't be able to too. And prawn-svg is unlikely to ever support foreignObject (based on statements made in the issue tracker).
You'll need to find a way to configure mermaid to not generate HTML or find an alternate PDF converter.
I opened this issue in the asciidoctor-diagram repository https://github.com/asciidoctor/asciidoctor-diagram/issues/398
However, I'm also opening here because it's unclear where the problem might reside.
I'm generating a pdf with diagrams using asciidoctor-pdf -r asciidoctor-diagram index.adoc but diagrams are generated without text.
Here is my Gem list:
If I generate the HTML with asciidoctor -r asciidoctor-diagram index.adoc all diagrams are generated correctly.
I'm working with this repository: https://github.com/chaincodelabs/onboarding-to-bitcoin-core, the particular file that has the first diagram is https://github.com/chaincodelabs/onboarding-to-bitcoin-core/blob/master/02_architecture.adoc
There is a mermaid-config.json file in the repository with the following content:
this is the settings.adoc