forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All headers in a guide get a unique `dom_id` to make anchor links work. If a header is already present we would prefix it with the `dom_id` of the parent node. This would not work for headers without parent nodes. This commit simplifies the `dom_id` uniqueness by only prepending the parent node if it exists. This can still result in duplicates at the same level, but for these we already show a warning: *** DUPLICATE ID: 'some_id', please make sure that there are no headings with the same name at the same level. Co-authored-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
- Loading branch information
1 parent
bab4aa7
commit a720480
Showing
2 changed files
with
12 additions
and
5 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