diff options
Diffstat (limited to 'themes/CodeIT/layouts/partials/function/fraction.html')
-rw-r--r-- | themes/CodeIT/layouts/partials/function/fraction.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/CodeIT/layouts/partials/function/fraction.html b/themes/CodeIT/layouts/partials/function/fraction.html new file mode 100644 index 0000000..9aa85d0 --- /dev/null +++ b/themes/CodeIT/layouts/partials/function/fraction.html @@ -0,0 +1,5 @@ +{{- /* Fraction */ -}} +{{- /* [A]/[B] -> <sup>A</sup>/<sub>B</sub> */ -}} +{{- $REin := `\[(.+?)\]/\[(.+?)\]` -}} +{{- $REout := `<sup>$1</sup>/<sub>$2</sub>` -}} +{{- return replaceRE $REin $REout . -}} |