a720480a0a
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> |
||
---|---|---|
.. | ||
markdown | ||
epub_packer.rb | ||
epub.rb | ||
generator.rb | ||
helpers.rb | ||
markdown.rb |