www/themes/LoveIt/layouts/partials/function/fraction.html

6 Zeilen
201 B
HTML

2020-05-28 14:55:57 +02:00
{{- /* Fraction */ -}}
{{- /* [A]/[B] -> <sup>A</sup>/<sub>B</sub> */ -}}
{{- $REin := `\[(.+?)\]/\[(.+?)\]` -}}
{{- $REout := `<sup>$1</sup>/<sub>$2</sub>` -}}
{{- return replaceRE $REin $REout . -}}