mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update MD033/no-inline-html to match specification for element names (fixes #188).
This commit is contained in:
parent
861e741d48
commit
853e90a1c1
2 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ const { addError, bareUrlRe, forEachLine, unescapeMarkdown } =
|
|||
require("../helpers");
|
||||
const { lineMetadata } = require("./cache");
|
||||
|
||||
const htmlElementRe = /<(([\w-]+)(?:[\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
|
||||
|
|
|
|||
|
|
@ -101,5 +101,7 @@ Text
|
|||
<foo-bar-baz> is an HTML element.
|
||||
|
||||
But <foo.bar.baz> is not an autolink or HTML element.
|
||||
And neither is <foo_bar>.
|
||||
Nor <123abc>.
|
||||
|
||||
Text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue