[GH-ISSUE #750] Examples rendered with U+2013 EN DASH and U+2014 EM DASH #6490

Closed
opened 2026-06-17 05:18:56 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ajtribick on GitHub (Aug 28, 2021).
Original GitHub issue: https://github.com/semver/semver/issues/750

On the website https://semver.org the examples in sections 9 and 10 containing consecutive hyphens are rendered with U+2013 EN DASH (1.0.0-x-y-z.–) and U+2014 EM DASH (1.0.0+21AF26D3—-117B344092BD), giving the impression that these characters are valid in the syntax. This conflicts with the statement "Identifiers MUST comprise only ASCII alphanumerics and hyphens [0-9A-Za-z-]".

Possibly the consecutive hyphens could be escaped in the Markdown source?

Originally created by @ajtribick on GitHub (Aug 28, 2021). Original GitHub issue: https://github.com/semver/semver/issues/750 On the website https://semver.org the examples in sections 9 and 10 containing consecutive hyphens are rendered with U+2013 EN DASH (1.0.0-x-y-z.–) and U+2014 EM DASH (1.0.0+21AF26D3—-117B344092BD), giving the impression that these characters are valid in the syntax. This conflicts with the statement "Identifiers MUST comprise only ASCII alphanumerics and hyphens [0-9A-Za-z-]". Possibly the consecutive hyphens could be escaped in the Markdown source?
Author
Owner

@perey commented on GitHub (Oct 9, 2021):

I saw this too, but after a bit of digging I found that it'd been reported already, and then moved to the website's repo as semver/semver.org#291. (That only flagged the error in s.9, but there's also semver/semver.org#320 for s.10.)

<!-- gh-comment-id:939335186 --> @perey commented on GitHub (Oct 9, 2021): I saw this too, but after a bit of digging I found that it'd been reported already, and then moved to the website's repo as semver/semver.org#291. (That only flagged the error in s.9, but there's also semver/semver.org#320 for s.10.)
Author
Owner

@ajtribick commented on GitHub (Oct 9, 2021):

Ah sorry, didn't find that one when raising this. Closing.

<!-- gh-comment-id:939349735 --> @ajtribick commented on GitHub (Oct 9, 2021): Ah sorry, didn't find that one when raising this. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#6490