### Bug description

Adding the `attr-output` option in an R chunk has no effect on the rendered html (i.e., the attribute does not get added).

Reprex:

````
```{r}
#| error: true
#| warning: true
#| message: true
#| attr-output: "style='color: blue;'"
#| attr-error: "style='color: yellow;'"
#| attr-warning: "style='color: orange;'"
#| attr-message: "style='color: green;'"
#| results: asis
cat("something")
stop("something")
warning("something")
message("something")
```
````

![image](https://user-images.githubusercontent.com/2816635/236914113-378feae1-a756-4f41-bb20-a7adafea8fb7.png)


### 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

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.6
      Path: /Library/Developer/CommandLineTools/usr/bin/python3
      Jupyter: (None)

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

[✓] Checking R installation...........OK
      Version: 4.3.0
      Path: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources
      LibPaths:
        - /Users/andyteucher/Library/R/arm64/4.3/library
        - /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
      knitr: 1.42
      rmarkdown: 2.21

[✓] 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.
- [ ] 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.
- [x] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
cderv
2023-05-08T19:21:30Z
ateucher
upstream knitr
closed
Chunk option `attr-output` in R chunks does not add attribute to html 
https://github.com/quarto-dev/quarto-cli/issues/5456