all repos — h3rald @ 48549cfc4927b84af3f1fec38b4f6b9e49f5a0e4

The sources of https://h3rald.com

Fixes.
h3rald h3rald@h3rald.com
Sat, 16 Mar 2024 17:49:46 +0000
commit

48549cfc4927b84af3f1fec38b4f6b9e49f5a0e4

parent

b4e09d334be531ebf58611f6615640bed2f2443e

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M rules.minrules.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 >=) (