mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
15 lines
310 B
PHP
15 lines
310 B
PHP
|
<?php
|
||
|
|
||
|
class UnsafeExtension extends Parsedown
|
||
|
{
|
||
|
protected function blockFencedCodeComplete($Block)
|
||
|
{
|
||
|
$text = $Block['element']['text']['text'];
|
||
|
unset($Block['element']['text']['text']);
|
||
|
|
||
|
$Block['element']['text']['unsafeHtml'] = "<p>$text</p>";
|
||
|
|
||
|
return $Block;
|
||
|
}
|
||
|
}
|