Update MD049/emphasis-style and MD050/strong-style to not report intraword asterisks/underscores as violations because exchanging either alters meaning (fixes #789).

This commit is contained in:
David Anson 2023-05-25 02:38:18 +00:00
parent 7005a8a438
commit 0006636f75
8 changed files with 77 additions and 22 deletions

View file

@ -10754,7 +10754,12 @@ Generated by [AVA](https://avajs.dev).
This is *not* {MD049}␊
Internal emphasis is preserved:␊
apple*banana*cherry, apple*banana*, *banana*cherry␊
apple_banana_cherry, apple_banana_, _banana_cherry␊
<!-- markdownlint-configure-file {␊
"MD037": false,␊
"MD049": {␊
"style": "asterisk"␊
}␊
@ -10815,7 +10820,12 @@ Generated by [AVA](https://avajs.dev).
This is _not_ {MD049}␊
Internal emphasis is preserved:␊
apple*banana*cherry, apple*banana*, *banana*cherry␊
apple_banana_cherry, apple_banana_, _banana_cherry␊
<!-- markdownlint-configure-file {␊
"MD037": false,␊
"MD049": {␊
"style": "underscore"␊
}␊
@ -44028,6 +44038,10 @@ Generated by [AVA](https://avajs.dev).
This is **not** {MD050}␊
Internal emphasis is preserved:␊
apple**banana**cherry, apple**banana**, **banana**cherry␊
apple__banana__cherry, apple__banana__, __banana__cherry␊
<!-- markdownlint-configure-file {␊
"MD050": {␊
"style": "asterisk"␊
@ -44089,6 +44103,10 @@ Generated by [AVA](https://avajs.dev).
This is __not__ {MD050}␊
Internal emphasis is preserved:␊
apple**banana**cherry, apple**banana**, **banana**cherry␊
apple__banana__cherry, apple__banana__, __banana__cherry␊
<!-- markdownlint-configure-file {␊
"MD050": {␊
"style": "underscore"␊