`revealjs` prioritizes the default syntax highlighting theme even when a value for `highlight-style` is provided, since it places this css for the default highlighting theme in the `<head>` portion of the document. It is especially noticeable for a highlighting theme like `espresso` where the two highlighting themes "mix".

Minimal example:

````
---
format:
  revealjs:
    execute:
      echo: true
    highlight-style: espresso
---

## Title

```{r}
rep("dog", 2)
```

```{r}
sum(1, 3)
```
````

css from default syntax highlighting theme in the `<head>`, which is clashing with `slides_files/libs/quarto-html/quarto-syntax-highlighting.css`:

```css
    code span.al { color: #ff0000; font-weight: bold; } /* Alert */
    code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
    code span.at { color: #7d9029; } /* Attribute */
    code span.bn { color: #40a070; } /* BaseN */
    code span.bu { } /* BuiltIn */
    code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
    code span.ch { color: #4070a0; } /* Char */
    code span.cn { color: #880000; } /* Constant */
    code span.co { color: #60a0b0; font-style: italic; } /* Comment */
    code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
    code span.do { color: #ba2121; font-style: italic; } /* Documentation */
    code span.dt { color: #902000; } /* DataType */
    code span.dv { color: #40a070; } /* DecVal */
    code span.er { color: #ff0000; font-weight: bold; } /* Error */
    code span.ex { } /* Extension */
    code span.fl { color: #40a070; } /* Float */
    code span.fu { color: #06287e; } /* Function */
    code span.im { } /* Import */
    code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
    code span.kw { color: #007020; font-weight: bold; } /* Keyword */
    code span.op { color: #666666; } /* Operator */
    code span.ot { color: #007020; } /* Other */
    code span.pp { color: #bc7a00; } /* Preprocessor */
    code span.sc { color: #4070a0; } /* SpecialChar */
    code span.ss { color: #bb6688; } /* SpecialString */
    code span.st { color: #4070a0; } /* String */
    code span.va { color: #19177c; } /* Variable */
    code span.vs { color: #4070a0; } /* VerbatimString */
    code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
```

Output:

![bad](https://user-images.githubusercontent.com/46703463/172067566-9bc2a2a5-029a-4c95-8fa4-603ac3857cb5.png)

Going into the browser's developer tools to delete the above css results in the following correct highlighting:

![good](https://user-images.githubusercontent.com/46703463/172067602-e389f6e5-c325-45c1-985c-b11501ebcd24.png)

I don't encounter this issue when the output is `format: html`.

## Checklist

When filing a _bug report_, please check the boxes below to confirm that you have provided us with the information we need. Have you:

- [x] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?

- [x] included a minimal, self-contained, and reproducible example?

- [x] documented the quarto version you're running, by providing the output produced by `quarto check` in a terminal in your issue?

```
PS C:\Users\Adam> quarto check

[>] Checking Quarto installation......OK
      Version: 0.9.515
      Path: C:\Users\Adam\AppData\Local\Programs\Quarto\bin\
      CodePage: 1252

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

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
      Version: 4.1.3
      Path: C:/PROGRA~1/R/R-41~1.3
      LibPaths:
        - C:/Users/Adam/Documents/R/win-library/4.1
        - C:/Program Files/R/R-4.1.3/library
      rmarkdown: 2.14

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

- [x] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?

- [x] documented which operating system you're running? If on Linux, please provide the specific distribution as well.

- [ ] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?

Not on the latest version of R...

```
- Session info ----------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value
 version  R version 4.1.3 (2022-03-10)
 os       Windows 10 x64 (build 19043)
 system   x86_64, mingw32
 ui       RStudio
 language (EN)
 collate  English_Canada.1252
 ctype    English_Canada.1252
 tz       America/New_York
 date     2022-06-05
 rstudio  2022.02.3+492 Prairie Trillium (desktop)
 pandoc   2.17.1.1 @ C:/Program Files/RStudio/bin/quarto/bin/ (via rmarkdown)

- Packages --------------------------------------------------------------------------------------------------------------------------------------------------------
 package   * version date (UTC) lib source
 knitr       1.39    2022-04-26 [1] CRAN (R 4.1.3)
 quarto      1.1     2022-01-06 [1] CRAN (R 4.1.3)
 rmarkdown   2.14    2022-04-25 [1] CRAN (R 4.1.3)

 [1] C:/Users/Adam/Documents/R/win-library/4.1
 [2] C:/Program Files/R/R-4.1.3/library

-------------------------------------------------------------------------------------------------------------------------------------------------------------------
```
2022-06-05T19:56:47Z
adamoshen
closed
`revealjs` prioritizes the default syntax highlighting theme even when `highlight-style` is provided
https://github.com/quarto-dev/quarto-cli/issues/1071