fix: markdown and katex rendering problem

This commit is contained in:
zayn7lie 2024-04-09 23:11:05 -04:00 committed by GitHub
parent ec960de5ec
commit fb727c2dc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,5 +8,7 @@
<!-- this fixes issues with _ preceding a { or a \ -->
{{ $content = $content | replaceRE "\\_\\{" "\\_{" }}
{{ $content = $content | replaceRE "\\_\\\\" "\\_\\" }}
<!-- this fixes issues with \, -->
{{ $content = $content | replaceRE "\\\\," "\\\\,"}}
{{ $content | .Page.RenderString | safeHTML }}