Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mermaid figure size directives ingored in revealjs #12697

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

Closed
arthur-shaw opened this issue May 6, 2025 · 1 comment
Closed

Mermaid figure size directives ingored in revealjs #12697

arthur-shaw opened this issue May 6, 2025 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@arthur-shaw
Copy link

Bug description

According to the docs (and past experience), mermaid cells allow users to specify the output size of the diagram. Unfortunately, those figure size directives are now ignored in reveal js. (Perhaps this is also true for other formats. This issue describes a similar problem for PPT.)

Steps to reproduce

---
format:
  revealjs:
    mermaid: 
      theme: default
execute: 
  eval: true
  echo: false
---

## Figure size directive ignored

```{mermaid}
%%| fig-width: 6.5
flowchart LR

  %% create nodes
  this["This thing"]
  that["That thing"]

  %% connect notes into diagram
  this --> | goes to | that
```

Actual behavior

The diagram appears as its (very small) inherent size. I cannot find a size directive that alters this.

Image

Expected behavior

The diagram should be the specified size--or at least larger than its (very small) inherent size.

Your environment

  • IDE: VSCode. See details below.

Version: 1.99.3 (user setup)
Commit: 17baf841131aa23349f217ca7c570c76ee87b957
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

  • OS: Windows 11

Quarto check output

$ quarto check
Quarto 1.6.39
[>] Checking environment information...
      Quarto cache location: C:\Users\WB393438\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.6.39
      Path: C:\WBG\Quarto\bin
      CodePage: 1252

[>] Checking tools....................OK
      Chromium: 869685
      TinyTeX: (not installed)

[>] Checking LaTeX....................OK
      Tex:  (not detected)

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

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
      Version: 4.4.1
      Path: C:/PROGRA~1/R/R-44~1.1
      LibPaths:
        - C:/Users/WB393438/r_libraries
        - C:/Program Files/R/R-4.4.1/library
      knitr: 1.49
      rmarkdown: 2.29

[>] Checking Knitr engine render......OK
@arthur-shaw arthur-shaw added the bug Something isn't working label May 6, 2025
@mcanouil
Copy link
Collaborator

mcanouil commented May 6, 2025

Please search through issues before opening new ones.

@mcanouil mcanouil added duplicate This issue or pull request already exists and removed bug Something isn't working labels May 6, 2025
@mcanouil mcanouil closed this as completed May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants