mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD037/no-space-in-emphasis to handle "***"/"___" (fixes #218).
This commit is contained in:
parent
c4f77e021d
commit
caf21fb392
2 changed files with 30 additions and 2 deletions
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
const { addErrorContext, forEachInlineChild } = require("../helpers");
|
||||
|
||||
const leftSpaceRe = /(?:^|\s)(\*\*?|__?)\s.*[^\\]\1/g;
|
||||
const rightSpaceRe = /(?:^|[^\\])(\*\*?|__?).+\s\1(?:\s|$)/g;
|
||||
const leftSpaceRe = /(?:^|\s)(\*\*?\*?|__?_?)\s.*[^\\]\1/g;
|
||||
const rightSpaceRe = /(?:^|[^\\])(\*\*?\*?|__?_?).+\s\1(?:\s|$)/g;
|
||||
|
||||
module.exports = {
|
||||
"names": [ "MD037", "no-space-in-emphasis" ],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue