We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fd6783 commit f4ad1b7Copy full SHA for f4ad1b7
packaging/pep517_backend/_transformers.py
@@ -76,10 +76,10 @@ def sanitize_rst_roles(rst_source_text: str) -> str: # noqa: WPS210
76
)
77
78
gh_role_regex = r"""(?x)
79
- :gh:`(?P<gh_slug>[^`]+)(?:\s+(.*))?`
+ :gh:`(?P<gh_slug>[^`<]+)(?:\s+([^`]*))?`
80
"""
81
gh_substitution_pattern = (
82
- r'`GitHub: \g<gh_slug> <https://github.com/\g<gh_slug>>`__'
+ r'GitHub: ``\g<gh_slug>``'
83
84
85
meth_role_regex = r"""(?x)
0 commit comments