Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ability to jump to fragment identifiers within the document. #17
This is a proposal to add the ability to jump from a fragment identifier to its header.
When the cursor is not currently positioned on a markdown/html link, it could default to using the first (fragment identifier) link found on the line. If executed and no link is present, nothing should happen.
Valid cursor positions
Both of these should go to a heading with the content: "To a heading" within the document.
Aside from the base functionality, there should be a setting that allows you to opt-out of adding the cursor position before jumping to the jumplist in case you do not want the extra "junk" added. It could be located at:
let g:mkdx#settings.links.fragment.jumplist = 1