diff --git a/layouts/shortcodes/typeit.html b/layouts/shortcodes/typeit.html index 4cf0bf8..0dcbdc0 100644 --- a/layouts/shortcodes/typeit.html +++ b/layouts/shortcodes/typeit.html @@ -11,8 +11,7 @@ {{ $content = trim $content "\n" }} {{ $content = replaceRE `\n` "\n" $content }} {{ $content = replaceRE `(?m)^()(.*?)\[(.*?)\]\((.*?)\)(.*?)()` "$1$2$6$3$1$5$6" $content }} - {{ $content = replaceRE `(?m)^( +)$1( +)$1" }} + {{ $content = replaceRE ` ` " " $content | replaceRE `(<\w+) ` "$1 " | replaceRE `\n` "" }} {{ $content | safeHTML }} {{ else }}