### Bug description

I am trying to include the output of {pointblank} validation, which is a complex HTML table based on {gt}. A reprex qmd file looks like this:

````md
---
title: "Untitled"
format: html
---

```{r setup}
library(pointblank)
```

```{r}
mtcars |> 
  create_agent() |> 
  interrogate()
```

````

When rendered via `quarto render`, the result looks like this:

![image](https://user-images.githubusercontent.com/1666657/219859499-892ee40c-ebc3-4f39-b822-158f594e9180.png)

Which is different to what is rendered in Rmarkdown and in the quarto doc inline, e.g. the complex heading structure is reduced to a single div and other layout/style features are lost. More complex tables (with steps in the validation output) come out completely garbled.

However, when I set `keep_md: true` like so

````md
---
title: "Untitled"
format: 
  html:
    keep-md: true
---

````

then render the markdown doc via `pandoc --to html test.md -o test.html`, the HTML table in the output is correct:

![image](https://user-images.githubusercontent.com/1666657/219863810-0c44b58f-58be-4466-8197-39af4c0027ee.png)

Simple {gt} tables render correctly in the normal quarto rendering workflow.

This leads me to guess that the problem might be in the default filters that quarto applies during the pandoc rendering step.

## Versions

Quarto version: 1.3.203

RStudio version 2023.03.0-daily+323 (2023.03.0-daily+323)

Session Info

```r
R version 4.2.1 (2022-06-23)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.2

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] pointblank_0.11.3 reprex_2.0.2      devtools_2.4.3    usethis_2.1.6    

loaded via a namespace (and not attached):
 [1] pillar_1.8.1      compiler_4.2.1    prettyunits_1.1.1 remotes_2.4.2     tools_4.2.1       testthat_3.1.6   
 [7] digest_0.6.31     pkgbuild_1.3.1    pkgload_1.2.4     gtable_0.3.1      tibble_3.1.8      memoise_2.0.1    
[13] lifecycle_1.0.3   pkgconfig_2.0.3   rlang_1.0.6       DBI_1.1.3         cli_3.6.0         rstudioapi_0.14  
[19] xfun_0.36         fastmap_1.1.0     withr_2.5.0       dplyr_1.0.10      knitr_1.42        desc_1.4.2       
[25] generics_0.1.3    fs_1.6.1          vctrs_0.5.2       grid_4.2.1        tidyselect_1.2.0  rprojroot_2.0.3  
[31] prompt_1.0.1      glue_1.6.2        R6_2.5.1          processx_3.6.1    fansi_1.0.3       sessioninfo_1.2.2
[37] blastula_0.3.3    ggplot2_3.4.0     callr_3.7.0       purrr_1.0.1       magrittr_2.0.3    scales_1.2.1     
[43] ps_1.7.1          clisymbols_1.2.0  ellipsis_0.3.2    htmltools_0.5.4   rsconnect_0.8.27  gt_0.8.0         
[49] assertthat_0.2.1  colorspace_2.0-3  utf8_1.2.2        munsell_0.5.0     cachem_1.0.6      crayon_1.5.2     
[55] brio_1.1.3 
```

### 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.
rich-iannone
2023-02-18T11:51:28Z
petrbouchal
bug tables
v1.4
closed
Quarto discards complex HTML table elements 
https://github.com/quarto-dev/quarto-cli/issues/4419