mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD037/no-space-in-emphasis to ignore emphasis markers in link text (fixes #280).
This commit is contained in:
parent
f607a49a5b
commit
ac5d52a3e3
3 changed files with 46 additions and 3 deletions
|
|
@ -129,7 +129,7 @@ module.exports = {
|
|||
// Back up one character so RegExp has a chance to match the
|
||||
// next marker (ex: "**star**_underscore_")
|
||||
emphasisRe.lastIndex--;
|
||||
} else {
|
||||
} else if (emphasisRe.lastIndex > 1) {
|
||||
// Back up one character so RegExp has a chance to match the
|
||||
// mis-matched marker (ex: "*text_*")
|
||||
emphasisRe.lastIndex--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue