-
DescriptionI have an equation that was rendered just fine within visual editing mode of Rstudio: But when I rendered the html, it was not: I spend half an hour trying to solve until I decided to try rendering it to pdf and I got this error message: Removing the # symbol from the equation resolved the issue and it was rendered in the html output. But it would have saved me a lot of time if I got that error message during the html rendering, rather than just a weird output. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Unfortunately, we can't use screenshots. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```

The end.
```` |
Beta Was this translation helpful? Give feedback.
-
I think this comes from the fact that RStudio IDE may still use Mathjax 2.7 while Quarto HTML uses Mathjax 3 by default. Try this document ---
title: "Reproducible Quarto Document"
format: html
html-math-method:
method: mathjax
url: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
---
$$
i = 1,…,5 \ \text{ (Task #)}
$$ This should show the equation correctly in the HTML I think this is related upstream to
Maybe you can open one specific to visual editor if none there already.
Using Hope it helps understand |
Beta Was this translation helpful? Give feedback.
I think this comes from the fact that RStudio IDE may still use Mathjax 2.7 while Quarto HTML uses Mathjax 3 by default.
Try this document
This should show the equation correctly in the HTML
I think this is related upstream to
Maybe you can open one specific to visual editor if no…