Handle ] which not close link descriptions or references.
Some checks failed
Testing / stability-extra-test (push) Waiting to run
Testing / pytest (push) Successful in 38s
Testing / style-sorted-imports (push) Waiting to run
Testing / mypy (push) Successful in 46s
Testing / style-formatting (push) Has been cancelled

This commit is contained in:
Sergio Martínez Portela 2024-08-22 00:21:02 +02:00
parent f31c64c242
commit 5552b3324b

View File

@ -1911,7 +1911,7 @@ def tokenize_contents(contents: str) -> List[TokenItems]:
continue
# Possible link close or open of description
if char == "]" and len(contents) > i + 1 and in_link:
if char == "]" and len(contents) > i + 1 and in_link and contents[i + 1] in "][":
if contents[i + 1] == "]":
cut_string()