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 require refresh when they're on the 3rd (!!) slide of a reveal JS presentation #2667

Closed
gshotwell opened this issue Sep 29, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@gshotwell
Copy link

Bug description

Truly bizzare bug. When you include a mermaid.js diagram on the 1st or second slide of a revealjs presentation it displays fine, but when it's on the 3rd slide or later it requires a refresh to render the diagram.

OS: Mac OS Big Sur 11.6
Rstudio: 2022.07.1 Build 554

This doesn't work properly:

## Slide 1

## Slide 2

## Mermaid slide

This diagram doesn't show up unless you refresh

```{mermaid}
%%| fig-width: 10
flowchart LR
  A[Write code] --> B(Source Code)
  B --> C{Execute code}
  C --> D[Output]
  C --> E[Output] 
  C --> F[Output]

But this does: 

```md
## Slide 1

## Slide 2

## Mermaid slide

This diagram doesn't show up unless you refresh

```{mermaid}
%%| fig-width: 10
flowchart LR
  A[Write code] --> B(Source Code)
  B --> C{Execute code}
  C --> D[Output]
  C --> E[Output] 
  C --> F[Output]

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [ ] Please document the operating system you're running. If on Linux, please provide the specific distribution.
@gshotwell gshotwell added the bug Something isn't working label Sep 29, 2022
@jimjam-slam
Copy link

jimjam-slam commented Sep 30, 2022

This might be a duplicate of #2607 🙂 How do you go with (for example):

format:
  revealjs:
    view-distance: 5
    mobile-view-distance: 5

@cderv
Copy link
Collaborator

cderv commented Sep 30, 2022

Yes this is a duplicate I'll close this one in favor of the previous one. We'll fix that.

@cderv cderv closed this as completed Sep 30, 2022
@cderv
Copy link
Collaborator

cderv commented Mar 31, 2023

Duplicate of #2607

@cderv cderv marked this as a duplicate of #2607 Mar 31, 2023
@allenmanning allenmanning closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants