You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
Description
Math equations in gt headings and subheading are not displaying properly when rendering qmd files to html.
Reproducible example
The following is in a .qmd file:
---
output: html
html-table-processing: none
---
```{r}
library(gt)
library(tidyverse)
head(mtcars) |>
gt() |>
tab_header(md('**mtcars** dataset'),
md('Testing a math formula: $e^{i \\pi}+1 = 0$'))
```
Expected result
The math formula $e^{i \pi}+1 = 0$ should display nicely (LaTeX-style) in the table subheading. When running the code interactively in RStudio everything looks good in the viewer, but when rendering the .qmd file to .html it does not work.
Prework
Description
Math equations in gt headings and subheading are not displaying properly when rendering qmd files to html.
Reproducible example
The following is in a .qmd file:
Expected result
The math formula$e^{i \pi}+1 = 0$ should display nicely (LaTeX-style) in the table subheading. When running the code interactively in RStudio everything looks good in the viewer, but when rendering the .qmd file to .html it does not work.
Screenshot from RStudio viewer:
Screenshot from rendered html:
Session info
My Quarto version is 1.5.56 (from running
quarto --version
in the Terminal) and my RStudio version is 2024.04.0+735.The text was updated successfully, but these errors were encountered: