carpentries / styles

Styles for The Carpentries lessons. No README to avoid merge conflicts with lessons. Demo 👇
https://carpentries.github.io/lesson-example
Other
84 stars 94 forks source link

lesson_check.py: relax P_LINK_IMAGE_LINE pattern #599

Closed maxim-belkin closed 3 years ago

maxim-belkin commented 3 years ago

This PR allows up to 3 non-word (\W in Python's re-speak) characters in the beginning and end of the pattern that matches links and images. This is to allow lesson developers place punctuation marks, parentheses, or other symbols before and after the link or image on the same line in Markdown.

maxim-belkin commented 3 years ago

Merging, as it seems to have the desired effect (based on @jhlegarreta's comment in #597).