mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-25 08:18:14 +08:00
fix BBCode image
This commit is contained in:
parent
a99102fdac
commit
443894d488
@ -1687,7 +1687,7 @@ function markdown_parser($incoming_comment) {
|
||||
$comment_markdown_content = $incoming_comment['comment_content'];
|
||||
include 'inc/Parsedown.php';
|
||||
$Parsedown = new Parsedown();
|
||||
$incoming_comment['comment_content'] = $Parsedown->text($incoming_comment['comment_content']);
|
||||
$incoming_comment['comment_content'] = $Parsedown->setUrlsLinked(false)->text($incoming_comment['comment_content']);
|
||||
return $incoming_comment;
|
||||
}
|
||||
add_filter('preprocess_comment' , 'markdown_parser');
|
||||
|
Loading…
Reference in New Issue
Block a user