18 lines
500 B
PHP
Executable File
18 lines
500 B
PHP
Executable File
<?php
|
||
require_once 'Parsedown.php';
|
||
|
||
class ParsedownExtra extends Parsedown {
|
||
protected function blockQuote($Line) {
|
||
if (preg_match('/^<5E>\s+/', $Line['text'])) {
|
||
return array(
|
||
'element' => array(
|
||
'name' => 'div',
|
||
'attributes' => array('class' => 'dialogue'),
|
||
'text' => ltrim($Line['text'], '<27> ')
|
||
)
|
||
);
|
||
}
|
||
|
||
return parent::blockQuote($Line);
|
||
}
|
||
} |