Skip to content

Commit f4ad1b7

Browse files
committed
🐛 Unlink GH references @ 📦 description meta
1 parent 9fd6783 commit f4ad1b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packaging/pep517_backend/_transformers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def sanitize_rst_roles(rst_source_text: str) -> str: # noqa: WPS210
7676
)
7777

7878
gh_role_regex = r"""(?x)
79-
:gh:`(?P<gh_slug>[^`]+)(?:\s+(.*))?`
79+
:gh:`(?P<gh_slug>[^`<]+)(?:\s+([^`]*))?`
8080
"""
8181
gh_substitution_pattern = (
82-
r'`GitHub: \g<gh_slug> <https://github.com/\g<gh_slug>>`__'
82+
r'GitHub: ``\g<gh_slug>``'
8383
)
8484

8585
meth_role_regex = r"""(?x)

0 commit comments

Comments
 (0)