2020-02-03 11:38:10 +01:00
|
|
|
|
2020-02-03 04:46:30 +01:00
|
|
|
{{- $REin := `:\(([\w- ]+?)\):` -}}
|
|
|
|
{{- $REout := `<i class="$1 fa-fw"></i>` -}}
|
|
|
|
{{- $content := replaceRE $REin $REout . -}}
|
|
|
|
|
|
|
|
{{- $REin = `\[(.+?)\]\^\((.+?)\)` -}}
|
|
|
|
{{- $REout = `<strong><ruby>$1<rt>$2</rt></ruby></strong>` -}}
|
|
|
|
{{- $content = replaceRE $REin $REout $content -}}
|
|
|
|
|
|
|
|
{{- $REin = `<sup>\[return\]</sup>` -}}
|
|
|
|
{{- $REout = `↩︎` -}}
|
|
|
|
{{- $content = replaceRE $REin $REout $content -}}
|
|
|
|
|
|
|
|
{{- $REin = `<(h[23456]) (id=".+?")>` -}}
|
|
|
|
{{- $REout = `<a class="post-dummy-target" $2></a><$1>` -}}
|
|
|
|
{{- $content = replaceRE $REin $REout $content -}}
|
|
|
|
|
|
|
|
{{- $REin = `<(.+) (id="fnref:.+?")>` -}}
|
|
|
|
{{- $REout = `<a class="post-dummy-target" $2></a><$1>` -}}
|
|
|
|
{{- $content = replaceRE $REin $REout $content -}}
|
|
|
|
|
|
|
|
{{- $REin = `<li (id="fn:.+?")(.*?)>\s?<p>` -}}
|
|
|
|
{{- $REout = `<li $2><p><a class="post-dummy-target" $1></a>` -}}
|
|
|
|
|
|
|
|
{{- return replaceRE $REin $REout $content -}}
|