Update MD037/no-space-in-emphasis to handle "***"/"___" (fixes #218).

This commit is contained in:
David Anson 2019-10-02 19:56:52 -07:00
parent c4f77e021d
commit caf21fb392
2 changed files with 30 additions and 2 deletions

View file

@ -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" ],