### Bug description

Quarto fails to render accents such as tilde and hat in latex equations correctly in revealjs presentation. Below I provide a mwe.
<img width="58" alt="image" src="https://github.com/quarto-dev/quarto-cli/assets/40790433/2bcd0713-7d21-4127-a913-5617a0e34ae4">

Safari 16.0, macOS 12.6, MacBook Pro M1 chip. Quarto 1.3.340. Rendered using VS code Quarto extension.

```{qmd}
title: "Minimal example"
format: 
  revealjs:
    theme: [default]
---
## Minimal example

- Tilde problem with Safari: $\tilde c$ or $\hat{c}$
```
`quarto check` output:

```
[✓] 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

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.13 (Conda)
      Path: /opt/homebrew/anaconda3/bin/python
      Jupyter: 4.11.1
      Kernels: ir, julia-1.8, python3

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

[✓] Checking R installation...........OK
      Version: 4.2.0
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library
      knitr: 1.42
      rmarkdown: 2.19

[✓] Checking Knitr engine render......OK
```


### 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-23T08:59:16Z
murattasdemir
bug third-party revealjs
v1.4
closed
Accented characters in math failed to render correctly in Safari
https://github.com/quarto-dev/quarto-cli/issues/5636