Delete layouts/partials/article/components/mdtexbug.html

This commit is contained in:
zayn7lie 2024-04-15 11:07:02 -04:00 committed by GitHub
parent 9130ee483a
commit 09d3712f68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +0,0 @@
<!-- ref: https://discourse.gohugo.io/t/braces-in-latex-get-escaped/39742/5 https://discourse.gohugo.io/t/use-goldmark-mathjax-extension/25721/8 https://discourse.gohugo.io/t/mathjax-rendering-problems-due-to-backslashes-interpretation-by-markdown-processor/30482 -->
{{ $content := .RawContent }}
<!-- this fixes issues with \\ not working correctly -->
{{ $content = $content | replaceRE "\\\\\\\\" "\\\\\\\\" }}
<!-- this fixes earlier issues with braces -->
{{ $content = $content | replaceRE "\\\\{" "\\\\{" }}
{{ $content = $content | replaceRE "\\\\}" "\\\\}" }}
<!-- this fixes issues with _ preceding a { or a \ -->
{{ $content = $content | replaceRE "\\_\\{" "\\_{" }}
{{ $content = $content | replaceRE "\\_\\\\" "\\_\\" }}
<!-- this fixes issues with \, -->
{{ $content = $content | replaceRE "\\\\," "\\\\,"}}