mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-24 01:40:13 +01:00
Improve MD038/no-space-in-code to allow single-spaces surrounding a code inline with internal spaces (fixes #277).
This commit is contained in:
parent
2ae29e2b9e
commit
bdc0246b34
2 changed files with 11 additions and 2 deletions
|
|
@ -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" ],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue