diff --git a/portal.go b/portal.go index 51ca508..a32e2fc 100644 --- a/portal.go +++ b/portal.go @@ -309,7 +309,6 @@ var boldRegex = regexp.MustCompile("([\\s>_~]|^)\\*(.+?)\\*([^a-zA-Z\\d]|$)") var strikethroughRegex = regexp.MustCompile("([\\s>_*]|^)~(.+?)~([^a-zA-Z\\d]|$)") var whatsAppFormat = map[*regexp.Regexp]string{ - codeBlockRegex: "
$1", italicRegex: "$1$2$3", boldRegex: "$1$2$3", strikethroughRegex: "$1
%s
", str)
+ }
+ return fmt.Sprintf("%s
", str)
+ })
return output
}