How to use math in raw html block #10762
-
Reproducible example in git repo here:https://github.com/stuvjordan-uroc/rawhtmlwithmath DescriptionNote: this question might seem to be the same as this one, but it's not. The problem that generated the question in that post was solved by not using a raw html block at all. In contrast, I have to use a raw html block for what I'm doing, so the answer offered in that discussion does not address my question. In a website that I'm writing with quarto, I need to include some tables with some custom styling. My approach so far is write the tables in raw html blocks, adding my own css classes, and styling those classes in a I want to add some nicely-typesetted math to my custom tables. How do I do that? Part of the accepted answer to this discussion question made me think that I might get latex markup in my raw html tables rendered into pretty math if I put the markup in delimiters like this So...how do I make latex markup in a raw html block rendered to pretty math? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Could you make your example reproducible? Right now it's only an HTML table. You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
Thanks, I was able to play around with it.
What you need is to use the following that will tell Quarto that some content is actually markdown and needs parsing.
This is documented in https://quarto.org/docs/authoring/tables.html#html-tables