### Bug description

Relationships are described with <span> tags in quarto with RStudio.
I have checked same issues are occurred in VSCode. 

# qmd file
````
---
title: "Mermaid Diagram"
format:
  html:
    theme: superhero
    self-contained: true
    mermaid:
      theme: dark
---

## Class Diagram

```{mermaid}
%%| echo: true

classDiagram
Class01 <|-- AveryLongClass : Cool
<<Interface>> Class01
Class09 --> C2 : Where am I?
Class09 --* C3
Class09 --|> Class07
Class07 : equals()
Class07 : Object[] elementData
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
class Class10 {
  <<service>>
  int id
  size()
}

```
````

The output is as follows;

<img width="811" alt="2023-05-01 9 45 35" src="https://user-images.githubusercontent.com/29029659/235384291-388fc23d-5921-4cab-94c8-6c1f6a0e60a8.png">


RStudio IDE version: 
* RStudio 2023.03.0+386 "Cherry Blossom" Release (3c53477afb13ab959aeb5b34df1f10c237b256c3, 2023-03-09) for macOS
* Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.03.0+386 Chrome/108.0.5359.179 Electron/22.0.3 Safari/537.36

OS:
* Mac Monterey 12.2, Apple M1

Quarto check:
[✓] 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.340
      Path: /Applications/quarto/bin



### 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?
- [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-05-01T00:51:54Z
UTNAK
bug mermaid
closed
mermaid class diagram: relationships are described with <span> tags
https://github.com/quarto-dev/quarto-cli/issues/5365