feat(toc): support fontawesome and ruby in TOC
This commit is contained in:
5
layouts/partials/function/fontawesome.html
Normal file
5
layouts/partials/function/fontawesome.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{- /* Font Awesome */ -}}
|
||||
{{- /* :(far fa-circle): -> <i class="far fa-circle fa-fw"></i> */ -}}
|
||||
{{- $REin := `:\(([\w- ]+?)\):` -}}
|
||||
{{- $REout := `<i class="$1 fa-fw"></i>` -}}
|
||||
{{- return replaceRE $REin $REout . -}}
|
||||
Reference in New Issue
Block a user