Improve header anchor link styling

This commit is contained in:
rubenwardy
2025-07-01 21:04:46 +01:00
parent 5243176d74
commit c21dc5313d
3 changed files with 13 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ def render_code(self, tokens: Sequence[Token], idx, options, env):
gfm_like.make()
md = MarkdownIt("gfm-like", {"highlight": highlight_code})
md.use(anchors_plugin, permalink=True, permalinkSymbol="#", max_level=6)
md.use(anchors_plugin, permalink=True, permalinkSymbol="🔗", max_level=6)
md.add_render_rule("fence", render_code)
init_mention(md)