cullmann.io/themes/LoveIt/layouts/partials/function/fraction.html

6 lines
201 B
HTML
Raw Normal View History

2021-02-18 21:44:01 +01:00
{{- /* Fraction */ -}}
{{- /* [A]/[B] -> <sup>A</sup>/<sub>B</sub> */ -}}
{{- $REin := `\[(.+?)\]/\[(.+?)\]` -}}
{{- $REout := `<sup>$1</sup>/<sub>$2</sub>` -}}
{{- return replaceRE $REin $REout . -}}