aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-03-02 02:17:52 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-03-02 02:17:52 +0300
commit917d2622aa5fe748c1cda914eae94c12be743c42 (patch)
tree946d30723c32e0834eb7a74bfa7cb766d22bbd2a /lib
parent6daf574fd3f18909be05b0d61335e7634329ec45 (diff)
support tables and emojies in markdown
Diffstat (limited to 'lib')
-rw-r--r--lib/MyParsedown.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/MyParsedown.php b/lib/MyParsedown.php
index 11e86d6..cd537bc 100644
--- a/lib/MyParsedown.php
+++ b/lib/MyParsedown.php
@@ -1,13 +1,16 @@
<?php
-use sixlive\ParsedownHighlight;
-
-class MyParsedown extends ParsedownHighlight {
+class MyParsedown extends ParsedownExtended {
public function __construct(
protected bool $useImagePreviews = false
) {
- parent::__construct();
+ parent::__construct([
+ 'tables' => [
+ 'tablespan' => true
+ ]
+ ]);
+
$this->InlineTypes['{'][] = 'FileAttach';
$this->InlineTypes['{'][] = 'Image';
$this->InlineTypes['{'][] = 'Video';