Skip to content

Keep protected links intact when wrapping hyphens - #458

Open
dajiaohuang wants to merge 1 commit into
Alir3z4:masterfrom
dajiaohuang:stew/c1-1392-protect-links-20261023
Open

dajiaohuang wants to merge 1 commit into
Alir3z4:masterfrom
dajiaohuang:stew/c1-1392-protect-links-20261023

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

  • Keep protected URLs intact during text wrapping, including when hyphens would otherwise split a URL.
  • Clarify the option's behavior and add regression coverage for links and hyphenated text.

Closes #425

Validation

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONIOENCODING=utf-8 py -3 -m pytest -q — 198 passed.
  • git diff --check — passed.

The test run used a local, uncommitted setuptools-scm version stub because the shallow checkout does not include the generated _version.py. No hardware, remote URLs, or real user HTML were used.

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.

Line breaks in links even when setting protect_links = true

1 participant