UmbrellaDocs / linkspector

Uncover broken links in your content.
Apache License 2.0
63 stars 9 forks source link

[BUG] Section links with emojies are reported as invalid. #64

Closed gaurav-nelson closed 3 months ago

gaurav-nelson commented 3 months ago

Describe the bug For example if a section is named as ## 📖 Documentation the valid link to this section #-documentation is reported as Cannot find section: #-documentation in file.

To Reproduce Steps to reproduce the behavior:

  1. Create a README.md file.
  2. Add the line check [the README Documentation Section](#-documentation)
  3. Create a section with title ## 📖 Documentation
  4. Run linkspector check

Expected behavior No broken links

gaurav-nelson commented 3 months ago

Duplicate of #60

Actually I have hundreds of false positive errors with accended anchor links. I also use unicode characters in links like 🔵, 🅿️ or 🔁. All the accented and unicode characters are HTML encoded in the links, maybe that is the reason Linkspector can not handle them.