Skip to content

Commit 85eb54f

Browse files
committed
fix: update link reference
1 parent 6fc0ffa commit 85eb54f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/mistune/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
LINK_TITLE_RE = re.compile(
2121
r"[ \t\n]+("
22-
r'"(?:\\' + PUNCTUATION + r'|[^"\x00])*"|' # "title"
23-
r"'(?:\\" + PUNCTUATION + r"|[^'\x00])*'" # 'title'
22+
r'"(?:\\' + PUNCTUATION + r'|[^"\\\x00])*"|'
23+
r"'(?:\\" + PUNCTUATION + r"|[^'\\\x00])*'"
2424
r")"
2525
)
2626
PAREN_END_RE = re.compile(r"\s*\)")

tests/test_commonmark.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# we don't support link title in (title)
1919
"links_496",
2020
"links_504",
21+
"link_reference_definitions_202",
2122
# we don't support flanking delimiter run
2223
"emphasis_and_strong_emphasis_352",
2324
"emphasis_and_strong_emphasis_367",

0 commit comments

Comments
 (0)