Skip to content

Fix literal backslashes before spaces in link destinations - #490

Open
draarivpatel-ui wants to merge 1 commit into
executablebooks:masterfrom
draarivpatel-ui:fix-link-destination-backslash-space
Open

draarivpatel-ui wants to merge 1 commit into
executablebooks:masterfrom
draarivpatel-ui:fix-link-destination-backslash-space

Conversation

@draarivpatel-ui

Copy link
Copy Markdown

Summary

  • Keep a literal backslash before a space in an unbracketed link destination.
  • Let the following space end the destination, matching CommonMark and markdown-it 15.
  • Add regression fixtures for inline links, titles, and reference definitions.

Tests

  • pytest -q tests (1193 passed)
  • pre-commit run --all-files

Ports markdown-it/markdown-it#1188.

A backslash before a space is literal, not an escape. Keep it in an
unbracketed destination and let the following space terminate the
destination, matching CommonMark and markdown-it 15.
Copilot AI balanced review requested due to automatic review settings November 25, 2026 00:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants