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

@ -29,4 +29,7 @@ To fix this issue, use the configured emphasis style throughout the document:
The configured emphasis style can be a specific symbol to use ("asterisk",
"underscore"), or can require that usage be consistent within the document.
Note: Emphasis within a word is restricted to "asterisk" in order to avoid
unwanted emphasis for words containing internal underscores like_this_one.
Rationale: Consistent formatting makes it easier to understand a document.