From 392b2844a044ff81407ea899185a308d97021105 Mon Sep 17 00:00:00 2001 From: WellsTsai Date: Fri, 6 Dec 2024 13:59:32 +0800 Subject: [PATCH] fix: resolve inline code block rendering issue on Microsoft Edge translation --- layouts/partials/article/components/content.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/article/components/content.html b/layouts/partials/article/components/content.html index 61e536c..a61ec4b 100644 --- a/layouts/partials/article/components/content.html +++ b/layouts/partials/article/components/content.html @@ -1,5 +1,6 @@
{{ $wrappedTable := printf "
${1}
" }} - {{ .Content | replaceRE "((?:.|\n)+?
)" $wrappedTable | safeHTML }} + {{ $wrappedInlineCodeBlock := printf "${1}" }} + {{ .Content | replaceRE "((?:.|\n)+?
)" $wrappedTable | replaceRE "(.*?)" $wrappedInlineCodeBlock | safeHTML }}