Merge pull request #9405 from tk0miya/9355_doclinter

doclinter: Allow anonymous hyperlink target having long URL
This commit is contained in:
Takeshi KOMIYA
2021-07-06 01:03:47 +09:00
committed by GitHub

View File

@@ -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