Fixes.
h3rald h3rald@h3rald.com
Sat, 16 Mar 2024 17:49:46 +0000
1 files changed,
2 insertions(+),
3 deletions(-)
jump to
M
rules.min
→
rules.min
@@ -196,15 +196,14 @@ (
() :headings text "<h3[^>]*>([^<]+)</h3>" ( :matches - matches 1 get :level - matches 2 get :title + matches 1 get :title title "[^a-zA-Z0-9_-]" "_" replace :id "heading__$#" (id) =% @id {} title %title id %id headings append @headings - "<a class='heading-anchor' id='$2'></a><h$1>$3 <a class='go2toc' href='#toc'>⇈</a></h$1>" (level id title) =% + "<a class='heading-anchor' id='$1'></a><h3>$2 <a class='go2toc' href='#toc'>⇈</a></h3>" (id title) =% ) replace-apply @result (headings size 3 >=) (