cullmann.io/themes/CodeIT/layouts/partials/function/ruby.html

6 lines
244 B
HTML
Raw Normal View History

2021-02-18 21:44:01 +01:00
{{- /* 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 . -}}