diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-03-02 02:17:52 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-03-02 02:17:52 +0300 |
commit | 917d2622aa5fe748c1cda914eae94c12be743c42 (patch) | |
tree | 946d30723c32e0834eb7a74bfa7cb766d22bbd2a /lib | |
parent | 6daf574fd3f18909be05b0d61335e7634329ec45 (diff) |
support tables and emojies in markdown
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MyParsedown.php | 11 |
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'; |