fix(style): toc counter is incorrect when there are <a> in <h2>

fix #589
This commit is contained in:
cubercsl 2022-05-06 03:02:39 +08:00
parent c1fcec95a6
commit 31b35e203e
No known key found for this signature in database
GPG Key ID: 45C64B19E9161E41

View File

@ -104,7 +104,7 @@
list-style-type: none;
counter-reset: item;
li a::before {
li a:first-of-type::before {
counter-increment: item;
content: counters(item, ".") ". ";
font-weight: bold;