From #27 (comment): some characters (such as punctuation) are allowed immediately after inline literals and roles, whereas others (alphanumerical) aren't.
The following regex could be improved to catch only the problematic characters:
|
for role in re.finditer("``.+?``(?!`).", paragraph_without_roles, flags=re.DOTALL): |
Replacing the last . with \w seems to cause lot of false positives though.
From #27 (comment): some characters (such as punctuation) are allowed immediately after inline literals and roles, whereas others (alphanumerical) aren't.
The following regex could be improved to catch only the problematic characters:
sphinx-lint/sphinxlint.py
Line 207 in 1c5adaa
Replacing the last
.with\wseems to cause lot of false positives though.