Skip to content

Text overlaps with border on Mermaid.js diagrams in a Reveal.js presentation #328

@NiccoMlt

Description

@NiccoMlt

Problem

I have a Quarto project that produces a Reveal.js presentation.

I'm using some simple class diagrams written with Mermaid.js, and they render correctly when opened in the browser.

immagine

immagine

When I use Decktape to export the presentation to a PDF file, the boxes have a wrong size, and the text overlaps with the border.

immagine

immagine

References

See https://github.com/NiccoMlt/quarto-mermaid-decktape-issue-demo/actions/runs/8591850884

quarto --version
1.4.553

node --version
v20.12.0

npx decktape version
3.12.0

https://niccomlt.github.io/quarto-mermaid-decktape-issue-demo/
https://github.com/NiccoMlt/quarto-mermaid-decktape-issue-demo/releases/download/v1.0.0/index.pdf

I also discovered quarto-dev/quarto-cli#4677, but it doesn't seem to be a problem directly related to Quarto CLI itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions