mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Allow slashes in HTML attributes
This commit is contained in:
parent
e33ac1c56e
commit
1127681d56
@ -619,7 +619,7 @@ class Parsedown
|
|||||||
|
|
||||||
protected function identifyMarkup($Line)
|
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))
|
if (in_array($matches[1], $this->textLevelElements))
|
||||||
{
|
{
|
||||||
|
@ -6,3 +6,8 @@ _content_
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>paragraph</p>
|
<p>paragraph</p>
|
||||||
|
<style type="text/css">
|
||||||
|
p {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
@ -9,3 +9,9 @@ _content_
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
paragraph
|
paragraph
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
p {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user