-
DescriptionI'm having trouble getting inline latex to render when it's included inside an html block. I use the html block for bootstrap show/hide buttons. But even outside of the button, I get the same result if try any {=html} block in a qmd. The It may be related to this? #8505 ---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---
Within a qmd I might add an html block such as this...
```{=html}
I want inline latex here $4/5$
$$4/5$$
```
Basically, I'd like to see if this happens to anyone else. If you have a solution, even better! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Why are you using raw HTML block with no HTML in it? I get inline and display (block) math. ![]() |
Beta Was this translation helpful? Give feedback.
The thing is that you are putting plain markdown inside an HTML block that you ask to be treated as plain HTML. So you are basically saying, "I don't want Quarto/Pandoc setup for this block".
See for instance the MathJax documentation: https://docs.mathjax.org/en/latest/basic/mathematics.html#tex-and-latex-input
Overall, you should either write completely using HTML or use fenced divs, but definitely not mixing markups together.