From 18fc0aca2fbb3d529a78173ba5a5464de603a78a Mon Sep 17 00:00:00 2001 From: facundo Date: Thu, 26 Sep 2024 12:48:27 -0300 Subject: [PATCH] fix smartify repalcement of quoted periods --- markup/smartify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markup/smartify.go b/markup/smartify.go index bd7fe1d..6ad28a6 100644 --- a/markup/smartify.go +++ b/markup/smartify.go @@ -53,7 +53,7 @@ var smartifyTransforms = []struct { {regexp.MustCompile("(^|[^[:alnum:]])``(.+?)''"), "$1“$2”"}, {regexp.MustCompile(`(^|[^[:alnum:]])'`), "$1‘"}, {regexp.MustCompile(`'`), "’"}, - {regexp.MustCompile(`(^|[^[:alnum:]?!])"`), "$1“"}, + {regexp.MustCompile(`(^|[^[:alnum:]?!\.])"`), "$1“"}, {regexp.MustCompile(`"($|[^[:alnum:]])`), "”$1"}, {regexp.MustCompile(`\\[‘’]`), "'"}, // undo backslashed replacements {regexp.MustCompile(`\\[“”]`), `"`}, // undo backslashed replacements