bartholomew
bartholomew copied to clipboard
Support linking to specific sections of a blog post
It'd be great if we could enable anchors for headings in the rendered posts, complete with self-links on the headings themselves, so clicking on a heading adds the relevant fragment.
I don't think pulldown-cmark
supports this out of the box, so it might be somewhat tedious to implement :/
Funnily enough the Fermyon docs site, which is also Bartholomew, does do this automatically. @karthik2804 any idea why it happens on the docs site but not on the blog?
@itowlson it is frontend magic sprinkles. https://github.com/fermyon/developer/blob/4ae2fa1857827da9642d42591596f138cebd877c/static/js/src/modules/utils.js#L84-L105