Update MD033/no-inline-html to match specification for element names (fixes #188).

This commit is contained in:
David Anson 2019-06-03 22:32:04 -07:00
parent 861e741d48
commit 853e90a1c1
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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