-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/frontend: change id generation to use parsed markdown text
To produce heading ids that match between the goldmark version of the code and the rsc.io/markdown version of the code, use the markdown parser to parse the markdown and then extract the text from it. We do this because rsc.io/markdown doesn't provide the raw markdown for us to generate the ids with. This will change the ids that are generated for some headings. For golang/go#61399 Change-Id: Id0f26b311b59e848ff1753e058d413ed3168926d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/548255 LUCI-TryBot-Result: Go LUCI <[email protected]> kokoro-CI: kokoro <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
- Loading branch information
Showing
3 changed files
with
55 additions
and
26 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
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