### Bug description

The `<img />` tags are not rendered properly in v1.3.326

````
```{mermaid}
flowchart TD
  X --> Q[<img src='https://quarto.org/quarto.png' width='154' height='36' /><br/>Some image]
```
````

With v1.2.475

![Screenshot from 2023-04-15 14-59-20](https://user-images.githubusercontent.com/79843522/232225452-a1dd83fe-d316-45e9-b285-ec8bdcfd264f.png)

With v1.3.326
![Screenshot from 2023-04-15 14-59-50](https://user-images.githubusercontent.com/79843522/232225454-54215ba1-38a4-41b1-b9e7-71a81c166581.png)

### Linux distribution

Ubuntu 20.04.6 LTS (Focal Fossa)

### Quarto check

#### `1.2.475`

```
[✓] Checking Quarto installation......OK
      Version: 1.2.475
      Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.11
      Path: /venv/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

#### `1.3.326`

```
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.326
      Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.11
      Path: /venv/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```


### 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?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
2023-04-15T13:16:18Z
ycrouin
closed
Mermaid doesn't render `<img />` tags in v1.3.326
https://github.com/quarto-dev/quarto-cli/issues/5199