Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support linking to specific sections of a blog post #188

Open
tschneidereit opened this issue Dec 18, 2023 · 2 comments
Open

Support linking to specific sections of a blog post #188

tschneidereit opened this issue Dec 18, 2023 · 2 comments

Comments

@tschneidereit
Copy link

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

@itowlson
Copy link
Contributor

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?

@karthik2804
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants