Mermaid diagram size in pptx

Open
#10,691 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Start with the provided test.qmd and render it using quarto render test.qmd with the pptx format and mermaid-format: png. Compare outputs after changing fig-width and fig-height; done means those values visibly change the Mermaid diagram size in the generated presentation.

Written by the indexing model from the issue text.

Description

bug diagrams-mermaid pptx
Bug description

I've had to update to the latest release of Quarto to get Mermaid diagrams rendering within pptx. However, it seems like the sizing feature doesn't work.

Steps to reproduce
  • Install Quarto 1.5.57. I did this via nix. Install chromium if needed quarto install chromium.
  • Put the following in test.qmd and run quarto render test.qmd.
  • Change values of fig-height or fig-width. The mermaid diagram doesn't change size.
---
title: "Talk title"
author: "Person"
format:
  pptx:
    mermaid-format: png
---


# Introduction
## Model outline
- Schematic of model
```{mermaid}
%%| fig-width: 2.5
%%| fig-height: 2
graph LR
    subgraph Demand
    P[Population] --> A[Activities]
    A --> Pl[Plans]
    end
    subgraph Supply
    OSM --> mm[Multi-modal network]
    GTFS --> mm
    
    end
    Pl --> S[Simulation]
    mm --> S
```
Expected behavior

No response

Actual behavior

No response

Your environment
  • IDE: VS Code
  • MacOS 14.6.1 (23G93)
Quarto check output

Quarto 1.5.57
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.77.6: OK
Deno version 1.45.5: OK
Typst version 0.11.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.57
Path: /nix/store/fbxjhdksjyv1diy3b7c4v0105mq8kj78-quarto-1.5.57/bin

[✓] Checking tools....................OK
TinyTeX: v2022.10
Chromium: 869685

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/ravis/Library/TinyTeX/bin/universal-darwin
Version: 2022

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
Version: 3.12.4
Path: /nix/store/72kk8px8v1c30plk6swp07gmalfx6b00-python3-3.12.4-env/bin/python3.12
Jupyter: 5.7.2
Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
Version: 4.4.1
Path: /nix/store/jd2sha5rwj3xdgjiybyn464fqvya49lx-R-4.4.1/lib/R
LibPaths:
- /nix/store/s55j7kslsh2rid3nczspdxz6j06mqq8r-r-boot-1.3-30/library
- /nix/store/mvg1a863bnvz4p16wc9c29qvwa3xjfdn-r-class-7.3-22/library
- /nix/store/wrz50h27f39lycna0297hpbynvnr001a-r-MASS-7.3-61/library
- /nix/store/b3dk4wp7fp2riapfm4ksvb9d27j1kr2y-r-cluster-2.1.6/library
- /nix/store/ycy08ybvq2qzx8dwvd1ij52qnvxld61a-r-codetools-0.2-20/library
- /nix/store/yd744jjgv5yrbfmn3y1n67hp965l17v3-r-foreign-0.8-86/library
- /nix/store/0w98p50p5g34shspb2iq7fygwy0ng6hq-r-KernSmooth-2.23-24/library
- /nix/store/3czhdqrqmc9a972g8ddh6wpcazbk6kz8-r-lattice-0.22-6/library
- /nix/store/vyn4h516s1yhi3j7ildj89b9vhlnrkdw-r-Matrix-1.7-0/library
- /nix/store/05r2ymwxkh2l6khia0d7q7qimnlxxqic-r-mgcv-1.9-1/library
- /nix/store/ynid12lfaml2h8bp78ril9znazd0j0wc-r-nlme-3.1-165/library
- /nix/store/ngqnnhqaxzs5mhfn2y2179yr9ildp8fi-r-nnet-7.3-19/library
- /nix/store/jznn702s6lkinchbkpb7ppvn3xka4r8l-r-rpart-4.1.23/library
- /nix/store/0rhl8gg11yw4nm8jsxy1f2npbq3m7swj-r-spatial-7.3-17/library
- /nix/store/a0v0520g1xq07rvvx9wxixpil6v4blr9-r-survival-3.7-0/library
- /nix/store/v64x9qq78lq9lidcjn30vjp802v2a21x-r-rmarkdown-2.27/library
- /nix/store/nflxamrbp26z1mz3hdi0w2pba66wg3l6-r-bslib-0.7.0/library
- /nix/store/g92w52zrmkxlpa1yvr0jyg7y5xb4sh78-r-base64enc-0.1-3/library
- /nix/store/17k5win0f0k3fdi7kbanhlxksafbc8ka-r-cachem-1.1.0/library
- /nix/store/h9afrsdd90v530xhzj6vlxb7flr7cipy-r-fastmap-1.2.0/library
- /nix/store/68gm4b4kickkkizl5jvq8bqkn02lzd1a-r-rlang-1.1.4/library
- /nix/store/1iqjcwqm5q8mva12jv7hvpgdjyjadr04-r-htmltools-0.5.8.1/library
- /nix/store/qvwfak2fka2nfm03jhsyb7qfwnikzja5-r-digest-0.6.35/library
- /nix/store/yd99kfx7f1ksddrvjycbdvg83zkrkhw1-r-jquerylib-0.1.4/library
- /nix/store/z2h1g0f9b313giqilhhcal2xva366cip-r-jsonlite-1.8.8/library
- /nix/store/40kajq3zq6r78cm6khmxbw6cm4zs5max-r-lifecycle-1.0.4/library
- /nix/store/hjmz1zbbqdwn7fjsy3y8kjwhiyk283b6-r-cli-3.6.2/library
- /nix/store/nlbpf5b7aacgnzvkdzl13xa374kyg34j-r-glue-1.7.0/library
- /nix/store/i1p86d1b09p7n010rq8cdghpl9in0dcs-r-memoise-2.0.1/library
- /nix/store/24zvm4a0mlwcnj8ik0kpx4id33ayw1qv-r-mime-0.12/library
- /nix/store/g4y72xpnx863xzdir94lfvryv8k51yxh-r-sass-0.4.9/library
- /nix/store/vifb3s4vh89bk79qazcdn13s7m2c5v90-r-fs-1.6.4/library
- /nix/store/1gnpa4lhx8mc1vggy0jwqrp15zkic6s0-r-R6-2.5.1/library
- /nix/store/vwpp8399nhbihgzpqgck61fgcyf08zfd-r-rappdirs-0.3.3/library
- /nix/store/xzmrwfxibq99fay3p8wnqgzsmbr35zv0-r-evaluate-0.24.0/library
- /nix/store/sxqp72ivfa15cnrnf323zydnw3yfj880-r-fontawesome-0.5.2/library
- /nix/store/m07rxbx1235ic226c5ck8a6bj7xslkk9-r-knitr-1.47/library
- /nix/store/j7p2lfdravzid6azxx7wjbkm1l63id6n-r-highr-0.11/library
- /nix/store/vjrgbm0kd7brkwlxpnda64xw9ash85ja-r-xfun-0.45/library
- /nix/store/65rkzd27wwv3j15cc0rf518sycv4p1w7-r-yaml-2.3.8/library
- /nix/store/j5zlypfl64mwznhyd4swj961rqxmzwm0-r-tinytex-0.51/library
- /nix/store/psbsgbirc1kprsrp6n4qljg396xpq63h-apple-framework-CoreFoundation-11.0.0/Library
- /nix/store/jd2sha5rwj3xdgjiybyn464fqvya49lx-R-4.4.1/lib/R/library
knitr: 1.47
rmarkdown: 2.27

[✓] Checking Knitr engine render......OK

Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto-cli

All issues in quarto-dev/quarto-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.