-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(anchors): use entire heading text for auto named anchors
Auto-named anchors used only last _text_ token of heading. I fixed that, and now auto-naming is generated from contents of all _text_ tokens of heading. Also, it fixed some cases where inline markup got into auto-generated anchors and they became broken _Example markup_: `## _Lorem ~~ipsum **dolor** sit~~ amet_` __Before__: auto anchor is `#amet` __Now__: auto anchor is `#lorem-ipsum-dolor-sit-amet`
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 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