Skip to content

Commit 6adb966

Browse files
committed
Merge branch 'intersphinx_role' of github.com:jakobandersen/sphinx into intersphinx_role
2 parents 76a8dce + 3102636 commit 6adb966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/ext/intersphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ class IntersphinxDispatcher(CustomReSTDispatcher):
479479

480480
def role(self, role_name: str, language_module: ModuleType, lineno: int, reporter: Reporter
481481
) -> Tuple[RoleFunction, List[system_message]]:
482-
if len(role_name) > 9 and role_name.startswith('external') and role_name[8] in ':+':
482+
if len(role_name) > 9 and role_name.startswith(('external:', 'external+')):
483483
return IntersphinxRole(role_name), []
484484
else:
485485
return super().role(role_name, language_module, lineno, reporter)

0 commit comments

Comments
 (0)