[PR #867] Update to CommonMark 0.31.2 #1273

Open
opened 2026-01-29 14:52:22 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/xoofx/markdig/pull/867

State: closed
Merged: Yes


Main changes:

  • Definition of "Unicode punctuation character" has changed to also include symbol categories.
    • We were using the same helper when parsing autolinks (<http://...>) and GFM autolinks (http://...)
    • The one for AutoLinks seems to have been wrong, updated it to match the spec now
    • GitHub appears to allow symbols in its autolinks (e.g. emoji in domain name), so I tried to match that by keeping the old behavior there
  • More forms of inline raw HTML comments are allowed: <!-->, <!--->
  • search is apparently an HTML tag now

.

**Original Pull Request:** https://github.com/xoofx/markdig/pull/867 **State:** closed **Merged:** Yes --- Main changes: - Definition of "Unicode punctuation character" has changed to also include symbol categories. - We were using the same helper when parsing autolinks (`<http://...>`) and GFM autolinks (`http://...`) - The one for AutoLinks seems to have been wrong, updated it to match the spec now - GitHub appears to allow symbols in its autolinks (e.g. emoji in domain name), so I tried to match that by keeping the old behavior there - More forms of inline raw HTML comments are allowed: `<!-->`, `<!--->` - `search` is apparently an HTML tag now .
claunia added the pull-request label 2026-01-29 14:52:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1273