Move library/markdown.php to src
This commit is contained in:
parent
903b960d4c
commit
fabbf810b0
6 changed files with 52 additions and 55 deletions
|
@ -1,14 +1,12 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Text\Markdown;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Network\Probe;
|
||||
|
||||
use League\HTMLToMarkdown\HtmlConverter;
|
||||
|
||||
require_once 'include/event.php';
|
||||
require_once 'library/markdown.php';
|
||||
require_once 'include/html2bbcode.php';
|
||||
require_once 'include/bbcode.php';
|
||||
|
||||
|
@ -58,7 +56,7 @@ function diaspora2bb($s) {
|
|||
// Escaping the hash tags
|
||||
$s = preg_replace('/\#([^\s\#])/', '#$1', $s);
|
||||
|
||||
$s = Markdown($s);
|
||||
$s = Markdown::convert($s);
|
||||
|
||||
$regexp = "/@\{(?:([^\}]+?); )?([^\} ]+)\}/";
|
||||
$s = preg_replace_callback($regexp, 'diaspora_mention2bb', $s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue