Update MD049/emphasis-style and MD050/strong-style to properly detect violations at the beginning and end of a line (fixes #1132).

This commit is contained in:
David Anson 2024-02-19 15:41:10 -08:00
parent f26df4743c
commit 64b9032b51
13 changed files with 436 additions and 18 deletions

View file

@ -1,8 +1,18 @@
# Emphasis style asterisk
*This* is fine
This *is* fine
This is *fine*
This is _not_ {MD049}
_This_ is not
This _is_ not
This is _not_
{MD049:-2} {MD049:-4} {MD049:-6}
Internal emphasis is preserved:
apple*banana*cherry, apple*banana*, *banana*cherry