[mermaid] fontawesome icons are not rendered

Open
#10,303 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
web-dev

Research direction

Start by reproducing the issue with the linked data-intuitive/mermaid-demos-in-quarto repository and compare its Font Awesome flowchart with the Mermaid documentation demo. Trace how Quarto 1.5.54 integrates Mermaid 10.2.0-rc2 versus the reported Mermaid 10.2.4 output. Done means Font Awesome icons render in the Quarto result as they do in the reference demo.

Written by the indexing model from the issue text.

Description

bug diagrams-mermaid
Bug description

Fontawesome icons are not rendered properly

Steps to reproduce

I created a data-intuitive/mermaid-demos-in-quarto repository reproduce and compare the mermaidjs demos.

The example on support for fontawesome icons using quarto 1.5.54 looks like this:

Screenshot from 2024-07-16 22-20-56

https://mermaid-demos-in-quarto.netlify.app/syntax/flowchart#basic-support-for-fontawesome

Expected behavior

In the corresponding mermaid docs demo, the same diagram looks like this:

Screenshot from 2024-07-16 22-21-30

https://mermaid.js.org/syntax/flowchart.html#basic-support-for-fontawesome

Actual behavior

No response

Your environment
  • quarto 1.5.54, which uses mermaid 10.2.0 rc2
  • mermaid diagrams fetched from mermaid 10.2.4
Quarto check output
$ quarto check
Quarto 1.5.54
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.54
      Path: /home/rcannood/.local/share/quarto-1.5.54/bin

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

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/bin
      Version: 2023

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

[✓] Checking Python 3 installation....OK
      Version: 3.12.4
      Path: /usr/bin/python3
      Jupyter: 5.7.2
      Kernels: python3

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

[✓] Checking R installation...........OK
      Version: 4.3.3
      Path: /usr/lib64/R
      LibPaths:
        - /home/rcannood/R/x86_64-redhat-linux-gnu-library/4.3
        - /usr/lib64/R/library
        - /usr/share/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.