mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update MD033/no-inline-html to ignore elements with embedded forward slash (fixes #201).
This commit is contained in:
parent
37236df18e
commit
f81609d1bb
2 changed files with 5 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ const { addError, bareUrlRe, forEachLine, unescapeMarkdown } =
|
|||
require("../helpers");
|
||||
const { lineMetadata } = require("./cache");
|
||||
|
||||
const htmlElementRe = /<(([A-Za-z][A-Za-z0-9-]*)(?:[\s/][^>]*)?)>/g;
|
||||
const htmlElementRe = /<(([A-Za-z][A-Za-z0-9-]*)(?:\s[^>]*)?)(?:\/>|>)/g;
|
||||
const linkDestinationRe = /]\(\s*$/;
|
||||
const inlineCodeRe = /^[^`]*(`+[^`]+`+[^`]+)*`+[^`]*$/;
|
||||
// See https://spec.commonmark.org/0.29/#autolinks
|
||||
|
|
|
|||
|
|
@ -21,3 +21,7 @@ Text \` text `<code>` text `<code>` text
|
|||
Text \` text `<code>` text \` text `<code>` text
|
||||
Text \`\` text `<code>` text
|
||||
Text `<code>` text \` text `<code>` text
|
||||
|
||||
## Slash in element name
|
||||
|
||||
Text **\<base directory>\another\directory\\<slash/directory>** text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue