### Bug description

From @muellerzr and @jph00:

Quarto isn't rendering Mermaid graphs when in a notebook that also uses fastprogress:

In a markdown cell:

```
{mermaid}
flowchart TD
    A[Gather Data] --> B[Clean Data]
    B --> C[Build `DataLoaders`]
    C ==> D[Build a `Learner`]
    D ==> E[Train with modern best practices]
    E ==> F[Deploy]
    F --> A
    E ==> C
```

In a code cell (& execute it):

```
from fastprogress.fastprogress import master_bar, progress_bar
mbar = master_bar(list(range(5)))

for i in mbar:
    mbar.write([f'Entry {i}', f'Value: {i+1}'], table=True)
```

The error message is:

```
Uncaught ReferenceError: mermaid is not defined
    <anonymous> http://localhost:3000/site_libs/quarto-diagram/mermaid-init.js:21
```

Notebook which exhibits this issue on quarto render/preview: https://gist.github.com/muellerzr/2b2384041115d941ca9ec3a9fcf0fd03


### 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.
- [ ] 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.
jjallaire
2022-10-22T10:48:35Z
jjallaire
bug
v1.2
closed
mermaid not defined error when ipywidgets are present
https://github.com/quarto-dev/quarto-cli/issues/2974