Replies: 2 comments 7 replies
-
I am not sure to understand. KaTeX, MathJax are all JavaScript. |
Beta Was this translation helpful? Give feedback.
-
There are tools to run KaTeX locally for example. This R package does it https://docs.ropensci.org/katex/ So you could imagine using R in your .qmd document for example, and have inline math rendered through R inline or block function. There is a post processing function for the HTML produced by Pandoc, but not for a .md that you would use for HUGO. Though you could maybe build something in same idea to post process you .md document and render katex locally. This could maybe be done using Lua filter - See this discussion where some links could be adapted to work with Quarto and your use case When rendered locally, only a CSS will be needed, and no rendering in browser through JS. As you are mentioning Hugo, you could also look for server-side option for Hugo. Hope it helps give idea on what could be done. |
Beta Was this translation helpful? Give feedback.
-
Description
Hello, I am trying to use Quarto along with Hugo to get a site up and running. I have been hoping to eliminate need for JS to run on the website, so I have been wondering how it would be possible to replace
$$...$$
or$...$
with the rendered katex/mathjax/mathml html while converting qmd to md. I'm making this post to collect any method used to achieve the same.Beta Was this translation helpful? Give feedback.
All reactions