mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-30 04:05:13 +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 . -}}
|