link/code gmi bugfix
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Convert links */ -}}
|
||||
{{- $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}}
|
||||
{{- $content = $content | replaceRE `([^\w])\[([^\]]+)\]\[(\d+)\]` "$1$2[$3]" -}}
|
||||
{{- $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}}
|
||||
{{- $content = $content | replaceRE `\[([^\]]+)\]\([^\)]+\)` "$1" -}}
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
|
||||
{{- /* Misc. markup fixes */ -}}
|
||||
{{- $content = $content | replaceRE `<!--more-->\n+` "" -}}
|
||||
{{- $content = $content | replaceRE `<[/]?span>` "" -}}
|
||||
{{- $content = $content | replaceRE `(?m)^ >` ">" -}}
|
||||
{{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
|
||||
{{- $content = $content | replaceRE `(?m)^- ` "* " -}}
|
||||
|
||||
Reference in New Issue
Block a user