mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 23:08:17 +01:00
5 lines
244 B
HTML
5 lines
244 B
HTML
{{- /* Ruby */ -}}
|
|
{{- /* [EN]^(English) -> <strong><ruby>EN<rt>English</rt></ruby></strong> */ -}}
|
|
{{- $REin := `\[(.+?)\]\^\((.+?)\)` -}}
|
|
{{- $REout := `<strong><ruby>$1<rt>$2</rt></ruby></strong>` -}}
|
|
{{- return replaceRE $REin $REout . -}}
|