How to rewrite header elements #425

Open
opened 2026-01-29 14:36:23 +00:00 by claunia · 0 comments
Owner

Originally created by @kaylumah on GitHub (Jan 24, 2021).

Hi,

I really like your library, but I am not really clear on which customization hooks I need to use, since there are a lot of hooks available. For many differnt variants, like for example the Figure extension creates custom types alongside parsers and renderers. So I am a bit lost and I thought I ask here for advise.

I think I need something like AutoIdentifiers but I am not sure.

The use case I want to do is make all headers clickable with anchors.

So

# heading one

Would become

<h1><a id="heading-one">heading one</a></h1>

Any pointers are appreciated

Originally created by @kaylumah on GitHub (Jan 24, 2021). Hi, I really like your library, but I am not really clear on which customization hooks I need to use, since there are a lot of hooks available. For many differnt variants, like for example the Figure extension creates custom types alongside parsers and renderers. So I am a bit lost and I thought I ask here for advise. I think I need something like AutoIdentifiers but I am not sure. The use case I want to do is make all headers clickable with anchors. So ``` # heading one ``` Would become ``` <h1><a id="heading-one">heading one</a></h1> ``` Any pointers are appreciated
claunia added the question label 2026-01-29 14:36:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#425