From 717a13a580fb82063d40525bcc63cd1d36f5994a Mon Sep 17 00:00:00 2001
From: Filippo Andrea Sighinolfi <83777862+Sighi-04@users.noreply.github.com>
Date: Sun, 27 Nov 2022 18:55:13 +0000
Subject: [PATCH] feat: Added italian localization in i18n/it.toml (#239)
---
layouts/partials/textprocessing.html | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html
index 6776fa5..bd2cca5 100644
--- a/layouts/partials/textprocessing.html
+++ b/layouts/partials/textprocessing.html
@@ -96,4 +96,11 @@
{{ $content = $content | replaceRE "blockquote class=callout" "blockquote" }}
{{end}}
+{{/* Make ==text== into <mark>text</mark> */}}
+{{$mark := findRE "(?Us)==([^\\$]+)==" $content}}
+{{range $mark}}
+ {{$fixed := printf "<mark>%s</mark>" (replace . "==" "")}}
+ {{$content = replace $content . $fixed}}
+{{end}}
+
{{ $content | safeHTML }}
--
Gitblit v1.10.0