Hey folks, I really new to Hugo, and I have been working to get Asciidoc support working. Most everything works except for rendering math formulas on a webpage. I was looking at some of the different resources about how to do this, including the very helpful post:
https://foo-dogsquared.github.io/blog/posts/blogging-with-asciidoctor-and-hugo/
I was looking at a simple latex block like this, for the Asciidoc format:
[latexmath]
++++
\frac{\partial V}{\partial t}
+ \frac{1}{2} \sigma^2 S^2 \frac{\partial^2 V}{\partial S^2}
+ r S \frac{\partial V}{\partial S}
- r V = 0
++++
I tried to add the :stem: latexmath
directive to the adoc
template. I also added the following lines to my config.toml.
[markup.asciidocext]
extensions = ["asciidoctor-html5s",
"asciidoctor-diagram",
"asciidoctor-mathematical",
"asciidoctor-bibtex"]
workingFolderCurrent = true
[markup.asciidocext.attributes]
my-base-url = "https://blog.org"
my-attribute-name = "my value"
But the math stuff is still not rendering properly. I imagine there must be a setting somewhere else in the Hugo config to help make this work.
If anyone know how to get this working, please pass along some wisdom. Thanks.