mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9405 from tk0miya/9355_doclinter
doclinter: Allow anonymous hyperlink target having long URL
This commit is contained in:
@@ -49,6 +49,9 @@ def lint(path: str) -> int:
|
||||
if re.match(r'^\s*\.\. ', line):
|
||||
# ignore directives and hyperlink targets
|
||||
pass
|
||||
elif re.match(r'^\s*__ ', line):
|
||||
# ignore anonymous hyperlink targets
|
||||
pass
|
||||
elif re.match(r'^\s*``[^`]+``$', line):
|
||||
# ignore a very long literal string
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user