Repository navigation
Heading anchors / "copy link to heading" as an opt-in extension #3339
ihordubas99
started this conversation in
Ideas & Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
This was discussed in #1180 and closed as application specific; a related request for heading
idattributes was also closed (<link to Ovgodd's discussion>), and in-document#hashlinks were requested in <link to ssa-serg's discussion>. We understand the concerns raised there (URL handling, multiple editors per page, UI). We'd like to propose a narrower, opt-in version, since several integrators (OpenProject, La Suite Docs – see #2003, suitenumerique/docs#653) are building the same thing independently.What we built in OpenProject
Headings in collaborative documents get a link button. Clicking it copies a link to the heading, and opening the link scrolls to it.
#heading-<id>), so links survive heading renames and nothing extra is stored in the document.Proposal
An opt-in extension (off by default) that:
scrollToBlock(id)helper that integrators can call on load / onhashchange.All reactions