Skip to content

🐛 FIX: Reject escaped controls in link destinations - #487

Open
Aschenbath wants to merge 1 commit into
executablebooks:masterfrom
Aschenbath:fix/oss50-bc63-markdown-destination-controls
Open

Aschenbath wants to merge 1 commit into
executablebooks:masterfrom
Aschenbath:fix/oss50-bc63-markdown-destination-controls

Conversation

@Aschenbath

Copy link
Copy Markdown
Contributor

A backslash immediately before a newline currently lets angle-wrapped link and image destinations span lines. In bare destinations, the same scanner also skips forbidden ASCII controls, producing links from invalid destinations.

Reject escaped line endings inside angle brackets and let controls terminate bare destinations while preserving the literal backslash. Keep punctuation escapes and valid trailing separators working, and add an Unreleased changelog entry.

Validation: regression tests fail on the unchanged base; the full tox suite passes (1,194 tests), and pre-commit run --all-files passes, including strict mypy.

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.

1 participant