Squeeze multi-paragraph bullets in GMI
This commit is contained in:
@@ -47,12 +47,13 @@
|
|||||||
|
|
||||||
{{- /* Misc. markup fixes */ -}}
|
{{- /* Misc. markup fixes */ -}}
|
||||||
{{- $content = $content | replaceRE `<!--more-->\n+` "" -}}
|
{{- $content = $content | replaceRE `<!--more-->\n+` "" -}}
|
||||||
{{- $content = $content | replaceRE `(?m)^ >` ">" -}}
|
{{- $content = $content | replaceRE `(?m)^[ ]+>` ">" -}}
|
||||||
{{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
|
{{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
|
||||||
{{- $content = $content | replaceRE `(?m)^- ` "* " -}}
|
{{- $content = $content | replaceRE `(?m)^- ` "* " -}}
|
||||||
{{- $content = $content | replaceRE `(?m)^[\*-]{3}$` "✱ ✱ ✱" -}}
|
{{- $content = $content | replaceRE `(?m)^[\*-]{3}$` "✱ ✱ ✱" -}}
|
||||||
{{- $content = $content | replaceRE `=> /(.+\.pdf)` (printf "=> %s$1" site.BaseURL) -}}
|
{{- $content = $content | replaceRE `=> /(.+\.pdf)` (printf "=> %s$1" site.BaseURL) -}}
|
||||||
{{- $content = $content | replaceRE `=> /(elsewhere[^ ])` (printf "=> %s$1" site.BaseURL) -}}
|
{{- $content = $content | replaceRE `=> /(elsewhere[^ ])` (printf "=> %s$1" site.BaseURL) -}}
|
||||||
|
{{- $content = $content | replaceRE `(?m)^(\* [^\n]+)\n\n ` "$1 " -}}
|
||||||
{{- $content = $content | replaceRE `(?m)\n{3,}` "\n\n" }}
|
{{- $content = $content | replaceRE `(?m)\n{3,}` "\n\n" }}
|
||||||
|
|
||||||
{{- $content | safeHTML -}}
|
{{- $content | safeHTML -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user