Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

lesson_check.py: relax P_LINK_IMAGE_LINE pattern#599

Merged
maxim-belkin merged 1 commit into
carpentries:gh-pagesfrom
maxim-belkin:allow/non/word/chars-in-p_link_image_line-pattern
May 12, 2021
Merged

lesson_check.py: relax P_LINK_IMAGE_LINE pattern#599
maxim-belkin merged 1 commit into
carpentries:gh-pagesfrom
maxim-belkin:allow/non/word/chars-in-p_link_image_line-pattern

Conversation

@maxim-belkin

@maxim-belkin maxim-belkin commented May 11, 2021

Copy link
Copy Markdown
Contributor

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.

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 or after the link or image on the same line in
Markdown.
@maxim-belkin

Copy link
Copy Markdown
Contributor Author

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

@maxim-belkin maxim-belkin merged commit ba5acb9 into carpentries:gh-pages May 12, 2021
@maxim-belkin maxim-belkin deleted the allow/non/word/chars-in-p_link_image_line-pattern branch May 12, 2021 11:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant