feat: new style update

This commit is contained in:
Dillon
2019-08-19 13:26:39 +08:00
parent ee7c7549b5
commit dcbc7547fc
11 changed files with 109 additions and 22 deletions

View File

@@ -64,6 +64,9 @@
{{ $REin = `:\(([\w- ]+?)\):` }}
{{ $REout = `<i class="inline-icon $1"></i>` }}
{{ $content = replaceRE $REin $REout $content }}
{{ $REin = `\[(.+?)\]\^\((.+?)\)` }}
{{ $REout = `<strong><ruby>$1<rt>$2</rt></ruby></strong>` }}
{{ $content = replaceRE $REin $REout $content }}
{{ $content | safeHTML }}
</div>