aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/formatter
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-08-27 15:25:18 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-13 12:20:34 +0200
commit8fabcd0224b1122a48b495326854bb3562cd2e9d (patch)
treeb4236f5f7fd9fbd35b33b8e3a55624b380c914e7 /application/formatter
parent84045ffbb10c9d312b51dad972bae973c11aad3c (diff)
downloadShaarli-8fabcd0224b1122a48b495326854bb3562cd2e9d.tar.gz
Shaarli-8fabcd0224b1122a48b495326854bb3562cd2e9d.tar.zst
Shaarli-8fabcd0224b1122a48b495326854bb3562cd2e9d.zip
Add Markdown Extra formatter
Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
Diffstat (limited to 'application/formatter')
-rw-r--r--application/formatter/BookmarkMarkdownExtraFormatter.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/application/formatter/BookmarkMarkdownExtraFormatter.php b/application/formatter/BookmarkMarkdownExtraFormatter.php
new file mode 100644
index 00000000..0694b23f
--- /dev/null
+++ b/application/formatter/BookmarkMarkdownExtraFormatter.php
@@ -0,0 +1,24 @@
1<?php
2
3namespace Shaarli\Formatter;
4
5use Shaarli\Config\ConfigManager;
6
7/**
8 * Class BookmarkMarkdownExtraFormatter
9 *
10 * Format bookmark description into MarkdownExtra format.
11 *
12 * @see https://michelf.ca/projects/php-markdown/extra/
13 *
14 * @package Shaarli\Formatter
15 */
16class BookmarkMarkdownExtraFormatter extends BookmarkMarkdownFormatter
17{
18 public function __construct(ConfigManager $conf, bool $isLoggedIn)
19 {
20 parent::__construct($conf, $isLoggedIn);
21
22 $this->parsedown = new \ParsedownExtra();
23 }
24}