mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 14:56:19 +01:00
84d48f37dc
* feat(syntax): add fraction syntax * docs: add remind for Hugo extended version
5 lines
201 B
HTML
5 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 . -}}
|