We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
:gh:
1 parent 7214d1e commit fd86654Copy full SHA for fd86654
packaging/pep517_backend/_transformers.py
@@ -67,11 +67,9 @@ def sanitize_rst_roles(rst_source_text: str) -> str:
67
)
68
69
gh_role_regex = r"""(?x)
70
- :gh:`(?P<gh_slug>[^`]+)(?:\s+(.*))?`
+ :gh:`(?P<gh_slug>[^`<]+)(?:\s+([^`]*))?`
71
"""
72
- gh_substitution_pattern = (
73
- r"`GitHub: \g<gh_slug> <https://github.com/\g<gh_slug>>`__"
74
- )
+ gh_substitution_pattern = r"GitHub: ``\g<gh_slug>``"
75
76
meth_role_regex = r"""(?x)
77
(?::py)?:meth:`~?(?P<rendered_text>[^`<]+)(?:\s+([^`]*))?`
0 commit comments