Improve MD038/no-space-in-code to allow single-spaces surrounding a code inline with internal spaces (fixes #277).

This commit is contained in:
David Anson 2020-04-24 19:52:28 -07:00
parent 2ae29e2b9e
commit bdc0246b34
2 changed files with 11 additions and 2 deletions

View file

@ -7,7 +7,7 @@ const { addErrorContext, filterTokens, forEachInlineCodeSpan, newLineRe } =
const leftSpaceRe = /^\s([^`]|$)/;
const rightSpaceRe = /[^`]\s$/;
const singleLeftRightSpaceRe = /^\s\S+\s$/;
const singleLeftRightSpaceRe = /^\s(?:\S.*\S|\S)\s$/;
module.exports = {
"names": [ "MD038", "no-space-in-code" ],