1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Merge pull request #200 from hkdobrev/html-attributes-slashes

Allow slashes in HTML attributes
This commit is contained in:
Emanuil Rusev 2014-08-14 01:27:48 +03:00
commit 9437766539
3 changed files with 14 additions and 3 deletions

View File

@ -619,7 +619,7 @@ class Parsedown
protected function identifyMarkup($Line)
{
if (preg_match('/^<(\w[\w\d]*)(?:[ ][^>\/]*)?(\/?)[ ]*>/', $Line['text'], $matches))
if (preg_match('/^<(\w[\w\d]*)(?:[ ][^>]*)?(\/?)[ ]*>/', $Line['text'], $matches))
{
if (in_array($matches[1], $this->textLevelElements))
{

View File

@ -5,4 +5,9 @@
_content_
</div>
</div>
<p>paragraph</p>
<p>paragraph</p>
<style type="text/css">
p {
color: red;
}
</style>

View File

@ -8,4 +8,10 @@ _content_
</div>
</div>
paragraph
paragraph
<style type="text/css">
p {
color: red;
}
</style>