bartholomew icon indicating copy to clipboard operation
bartholomew copied to clipboard

Support linking to specific sections of a blog post

Open tschneidereit opened this issue 1 year ago • 2 comments

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 :/

tschneidereit avatar Dec 18 '23 18:12 tschneidereit

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 avatar Dec 18 '23 19:12 itowlson

@itowlson it is frontend magic sprinkles. https://github.com/fermyon/developer/blob/4ae2fa1857827da9642d42591596f138cebd877c/static/js/src/modules/utils.js#L84-L105

karthik2804 avatar Dec 18 '23 19:12 karthik2804