feat(aplayer): add dark-mode for APlayer and fix Typeit bug

This commit is contained in:
Dillon
2020-01-29 22:16:50 +08:00
parent 5537e2ccef
commit c8e612b888
10 changed files with 197 additions and 76 deletions

View File

@@ -10,7 +10,7 @@
<div id={{ $id }}></div>
{{ else if .Get "code" }}
<!-- highlight code content without line number -->
{{ $content = highlight $content (.Get "code") "linenos=" }}
{{ $content = highlight $content (.Get "code") "linenos=false" }}
<!-- delete outer label -->
{{ $content = replaceRE `<div class="highlight"><pre class="chroma"><code[^<>]*>(?s)(.*)</code></pre></div>` "$1" $content }}
<!-- parsing markdown links -->