mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
fix: markdown and katex rendering problem
This commit is contained in:
parent
ec960de5ec
commit
fb727c2dc3
@ -8,5 +8,7 @@
|
|||||||
<!-- this fixes issues with _ preceding a { or a \ -->
|
<!-- this fixes issues with _ preceding a { or a \ -->
|
||||||
{{ $content = $content | replaceRE "\\_\\{" "\\_{" }}
|
{{ $content = $content | replaceRE "\\_\\{" "\\_{" }}
|
||||||
{{ $content = $content | replaceRE "\\_\\\\" "\\_\\" }}
|
{{ $content = $content | replaceRE "\\_\\\\" "\\_\\" }}
|
||||||
|
<!-- this fixes issues with \, -->
|
||||||
|
{{ $content = $content | replaceRE "\\\\," "\\\\,"}}
|
||||||
|
|
||||||
{{ $content | .Page.RenderString | safeHTML }}
|
{{ $content | .Page.RenderString | safeHTML }}
|
||||||
|
Loading…
Reference in New Issue
Block a user