Earmak's AST feature helps modifying markdown cleanly
I’ve created a library earmark_hashed_link which adds link to hashed text in a markdown. This library is smarter than just replacing text. It doesn’t add link to hashed text in comment/blockquote/code etc.
I hope this is also a nice example that earmak’s new (experimental) AST feature.