mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-27 02:35:12 +00:00
6 lines
201 B
HTML
6 lines
201 B
HTML
{{- /* Fraction */ -}}
|
|
{{- /* [A]/[B] -> <sup>A</sup>/<sub>B</sub> */ -}}
|
|
{{- $REin := `\[(.+?)\]/\[(.+?)\]` -}}
|
|
{{- $REout := `<sup>$1</sup>/<sub>$2</sub>` -}}
|
|
{{- return replaceRE $REin $REout . -}}
|