### Bug description

I'm not sure whether that's a {gt} or a Quarto problem. Since the {gt} code itself runs, I put it here.

Using IDs in {gt} tables causes issues with rendering a Quarto document. I don't know what the error means so I'll just put it here.

```
Error running filter /opt/quarto/share/filters/quarto-pre/quarto-pre.lua:
/opt/quarto/share/filters/quarto-pre/quarto-pre.lua:2555: attempt to concatenate a nil value (local 'v')
stack traceback:
	/opt/quarto/share/filters/quarto-pre/quarto-pre.lua:2562: in function </opt/quarto/share/filters/quarto-pre/quarto-pre.lua:2560>
```

The code that caused this error was (that's also the whole file)

```
ggplot2::mpg |> 
  gt::gt(id = 'myTbl')
```

## Version info

RStudio: 2022.07.2 Build 576
OS: Ubuntu 20.04.5 LTS
Quarto:  1.2.267

### 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.
cscheid
2022-11-08T19:20:31Z
AlbertRapp
bug duplicate tables
closed
Quarto does not render with some {gt} table IDs
https://github.com/quarto-dev/quarto-cli/issues/3247