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

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

View File

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