Skip to content

Commit ba5acb9

Browse files
authored
Merge pull request carpentries/styles#599
lesson_check.py: relax P_LINK_IMAGE_LINE pattern
2 parents af7efa5 + a927169 commit ba5acb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/lesson_check.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@
5959
# Pattern to match image-only and link-only lines
6060
P_LINK_IMAGE_LINE = re.compile(r'''
6161
[> #]* # any number of '>', '#', and spaces
62+
\W{,3} # up to 3 non-word characters
6263
!? # ! or nothing
6364
\[[^]]+\] # [any text]
6465
[([] # ( or [
6566
[^])]+ # 1+ characters that are neither ] nor )
6667
[])] # ] or )
6768
(?:{:[^}]+})? # {:any text} or nothing
69+
\W{,3} # up to 3 non-word characters
6870
[ ]* # any number of spaces
6971
\\?$ # \ or nothing + end of line''', re.VERBOSE)
7072

0 commit comments

Comments
 (0)