fix: mobile-toc target offset

This commit is contained in:
Dillon
2019-08-20 12:15:40 +08:00
parent 36a9b75468
commit f64c499957
2 changed files with 12 additions and 0 deletions

View File

@@ -77,6 +77,9 @@
{{ $REin = `\[(.+?)\]\^\((.+?)\)` }}
{{ $REout = `<strong><ruby>$1<rt>$2</rt></ruby></strong>` }}
{{ $content = replaceRE $REin $REout $content }}
{{ $REin = `<(h[23456]) (id=".+?")>` }}
{{ $REout = `<a class="post-title-target" $2></a><$1>` }}
{{ $content = replaceRE $REin $REout $content }}
{{ $content | safeHTML }}
</div>