mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue