first commit
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
require_once 'Parsedown.php';
|
||||
|
||||
class ParsedownExtra extends Parsedown {
|
||||
protected function blockQuote($Line) {
|
||||
// Îáðàáîòêà äèàëîãîâ
|
||||
if (preg_match('/^—\s+/', $Line['text'])) {
|
||||
return array(
|
||||
'element' => array(
|
||||
'name' => 'div',
|
||||
'attributes' => array('class' => 'dialogue'),
|
||||
'text' => ltrim($Line['text'], '— ')
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return parent::blockQuote($Line);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user