mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
HTML tags should have a name
This commit is contained in:
parent
3dd1326ded
commit
30763a0f38
@ -82,7 +82,7 @@ final class Markup implements ContinuableBlock
|
|||||||
return new self($rawLine, 5, self::closes12345TypeMarkup(5, $text));
|
return new self($rawLine, 5, self::closes12345TypeMarkup(5, $text));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\preg_match('/^<[\/]?+(\w*)(?:[ ]*+'.self::REGEX_HTML_ATTRIBUTE.')*+[ ]*+(\/)?>/', $text, $matches)) {
|
if (\preg_match('/^<[\/]?+(\w++)(?:[ ]*+'.self::REGEX_HTML_ATTRIBUTE.')*+[ ]*+(\/)?>/', $text, $matches)) {
|
||||||
$element = \strtolower($matches[1]);
|
$element = \strtolower($matches[1]);
|
||||||
|
|
||||||
if (\array_key_exists($element, Element::$TEXT_LEVEL_ELEMENTS)) {
|
if (\array_key_exists($element, Element::$TEXT_LEVEL_ELEMENTS)) {
|
||||||
|
1
tests/commonmark/587-Autolinks.html
Normal file
1
tests/commonmark/587-Autolinks.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p><></p>
|
1
tests/commonmark/587-Autolinks.md
Normal file
1
tests/commonmark/587-Autolinks.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
<>
|
1
tests/commonmark/590-Autolinks.html
Normal file
1
tests/commonmark/590-Autolinks.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p><foo.bar.baz></p>
|
1
tests/commonmark/590-Autolinks.md
Normal file
1
tests/commonmark/590-Autolinks.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
<foo.bar.baz>
|
@ -1 +1,4 @@
|
|||||||
<p>foo <a href="\*"></p>
|
<p>< a><
|
||||||
|
foo><bar/ >
|
||||||
|
<foo bar=baz
|
||||||
|
bim!bop /></p>
|
@ -1 +1,4 @@
|
|||||||
foo <a href="\*">
|
< a><
|
||||||
|
foo><bar/ >
|
||||||
|
<foo bar=baz
|
||||||
|
bim!bop />
|
Loading…
Reference in New Issue
Block a user