This commit is contained in:
2025-11-21 22:25:00 +08:00
parent 76d33237b2
commit 2108ba1a36
14 changed files with 14 additions and 33 deletions
+2 -3
View File
@@ -3,13 +3,12 @@ require_once 'Parsedown.php';
class ParsedownExtra extends Parsedown {
protected function blockQuote($Line) {
// Îáðàáîòêà äèàëîãîâ
if (preg_match('/^—\s+/', $Line['text'])) {
if (preg_match('/^�\s+/', $Line['text'])) {
return array(
'element' => array(
'name' => 'div',
'attributes' => array('class' => 'dialogue'),
'text' => ltrim($Line['text'], '— ')
'text' => ltrim($Line['text'], '� ')
)
);
}