From 354fb98cc96595870c1962d5939f0bab24951ffa Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 15 Aug 2019 12:56:32 +0200 Subject: Markdown plugin: fix RSS feed direct link reverse The plugin was only reversing permalinks and failed with setting rss_permalinks set to false --- plugins/markdown/markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 628970d6..f6f66cc5 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php @@ -259,7 +259,7 @@ function reverse_space2nbsp($description) function reverse_feed_permalink($description) { - return preg_replace('@— (\w+)$@im', '— [$2]($1)', $description); + return preg_replace('@— ([^<]+)$@im', '— [$2]($1)', $description); } /** -- cgit v1.2.3