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

Making this work in Quarto RevealJS in mermaid diagrams #37

Closed
jensbri opened this issue Mar 25, 2024 · 2 comments
Closed

Making this work in Quarto RevealJS in mermaid diagrams #37

jensbri opened this issue Mar 25, 2024 · 2 comments

Comments

@jensbri
Copy link

jensbri commented Mar 25, 2024

Kia ora/hello from New Zealand.

I tried installing this and making it work with Quarto RevealJS. I found this thread and tried all of the options provided.

If I do this

```{mermaid}
%%| fig-width: 15
%%| fig-height: 5
flowchart LR
  A[{{< fa brands github size=5x >}}"Session :one:"] --> B{Decision}
  B --> C[just observe]
  B --> D[get involved]
  C --> E[get an overivew and hear buzzwords]
  D --> F[get hands-on experience]

I get (where the last bullet point reflects the use of an icon, but the mermaid doesn't render at all)
image

And this solutions doesn't work at all.
image

Any advice on how to get better logs is highly appreciated.

Cheers
Jens

@neon-ninja
Copy link

The (fa:fa-phone) syntax will work if you update to quarto version 1.4.551

@cderv
Copy link
Contributor

cderv commented Mar 26, 2024

I don't think using shortcode inside a mermaid code cell is allowed

 A[{{< fa brands github size=5x >}}"Session :one:"] --> B{Decision}

Though mermaid has support for fontawesome but you can use it only if the dependencies are loaded.

Using the tricked explain in SO post does this

<!-- Initialize with any icon {{< fa thumbs-up >}} -->

because our filter here in the extension, only load the dependencies if a shortcode is used.

You could also only load the fontawesome dependencies.

Related issue

And as mentioned you need to check your quarto and fontawesome extension version to be sure to have the latest content.

I'll close this. but please reopen if I missed something

---
format: revealjs
keep-md: true
---

## First Slide

<!-- {{< fa thumbs-up >}} -->

```{mermaid}
flowchart LR
    D(fa:fa-phone)-->C[fa:fa-house]
```


```{mermaid}
flowchart LR
    D(fa:fa-phone)-->C[fa:fa-earth-americas]
```

image

@cderv cderv closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants