-
Notifications
You must be signed in to change notification settings - Fork 204
-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math rendering with Quarto and html #1822
Labels
Comments
Thanks for the report! It works correctly for me if I remove https://quarto.org/docs/authoring/tables.html#disabling-quarto-table-processing ---
format: html
---
```{r}
library(gt)
library(tidyverse)
head(mtcars) |>
gt() |>
tab_header(md('**mtcars** dataset'),
md('Testing a math formula: $e^{i \\pi}+1 = 0$'))
``` Since you may need to disable processing for some tables, but not for others, I suggest you use it as a chunk option. Or i.e. ---
format: html
---
```{r}
library(gt)
library(tidyverse)
head(mtcars) |>
gt() |>
tab_header(md('**mtcars** dataset'),
md('Testing a math formula: $e^{i \\pi}+1 = 0$'))
```
```{r}
#| html-table-processing: none
gt(mtcars)
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: