fix: fix id with pure number. by Koooooo-7 · Pull Request #2021 · docsifyjs/docsify

Summary

As per to #2019 mentioned, when the id is pure number, it can not go to the number anchor via id=number directly.
Although it should work in HTML5 which we supported but somehow it still breaks on browser.

close #2019

What kind of change does this PR introduce?

Bugfix

For any code change,

  • Related documentation has been updated if needed
  • Related tests have been updated or tests have been added

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue, if any:

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE