This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support anchor-only links within partials (#413)
Let's say a partial includes a link like this: ```markdown [Link text](#anchor) ``` The link will render like this, which is incorrect: ```markdown [Link text](includes/#anchor) ``` This is because of the way `remark-includes` processes relative links in partials. Some partials need to link to an anchor within the same page. This change supports this by ignoring links with references that begin with `#`. Since all headings are flattened into the containing page, we can safely ignore file paths for anchor links.
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is a [link to an anchor](#this-is-a-section). | ||
|
||
## This is a section. | ||
|
||
This is content within the section. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21d65fd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./
docs-goteleport.vercel.app
docs-git-main-goteleport.vercel.app
docs-kohl-delta.vercel.app
docs.goteleport.com