mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
24 lines
868 B
HTML
24 lines
868 B
HTML
|
{{- $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 -}}
|