CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
5.06k stars 1.66k forks source link

fix: markdown and katex rendering problem #1008

Closed zayn7lie closed 2 months ago

zayn7lie commented 7 months ago

According to https://discourse.gohugo.io/t/braces-in-latex-get-escaped/39742/5; https://discourse.gohugo.io/t/use-goldmark-mathjax-extension/25721/8; and https://discourse.gohugo.io/t/mathjax-rendering-problems-due-to-backslashes-interpretation-by-markdown-processor/30482, there are problems about rendering order about Markdown and KaTeX with Hugo Goldmark. So I add a partial which could fix the problem in the process of rendering.

CaiJimmy commented 2 months ago

Hi, thanks for the pull request. This issue has already been fixed by Hugo. See #1019 and https://gohugo.io/content-management/mathematics/