Slightly nicer PDF handling
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{{ $content = $content | replaceRE `<!--more-->\n+` "" -}}
|
||||
{{ $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}}
|
||||
{{ $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}}
|
||||
{{ $content = $content | replaceRE `=> (/.+\.pdf)` "=> https://davideisinger.com$1" -}}
|
||||
{{ $content = $content | replaceRE `=> (/.+\.pdf)` (printf "=> %s$1" site.BaseURL) -}}
|
||||
{{ $content = $content | replaceRE `(?m) >` ">" -}}
|
||||
{{ $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
|
||||
{{ $content = $content | replaceRE `(?m)^[\*-]{3}$` "✱ ✱ ✱" -}}
|
||||
|
||||
Reference in New Issue
Block a user