aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/markdown/markdown.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-08-15 12:56:32 +0200
committerArthurHoaro <arthur@hoa.ro>2019-08-15 12:56:32 +0200
commit354fb98cc96595870c1962d5939f0bab24951ffa (patch)
treeda4e5cd83244f3aba45eb9679ff34667c805f389 /plugins/markdown/markdown.php
parent0a4bc5a17dd8bc198d45aca13f9e40de4664159d (diff)
downloadShaarli-354fb98cc96595870c1962d5939f0bab24951ffa.tar.gz
Shaarli-354fb98cc96595870c1962d5939f0bab24951ffa.tar.zst
Shaarli-354fb98cc96595870c1962d5939f0bab24951ffa.zip
Markdown plugin: fix RSS feed direct link reverse
The plugin was only reversing permalinks and failed with setting rss_permalinks set to false
Diffstat (limited to 'plugins/markdown/markdown.php')
-rw-r--r--plugins/markdown/markdown.php2
1 files changed, 1 insertions, 1 deletions
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)
259 259
260function reverse_feed_permalink($description) 260function reverse_feed_permalink($description)
261{ 261{
262 return preg_replace('@&#8212; <a href="([^"]+)" title="[^"]+">(\w+)</a>$@im', '&#8212; [$2]($1)', $description); 262 return preg_replace('@&#8212; <a href="([^"]+)" title="[^"]+">([^<]+)</a>$@im', '&#8212; [$2]($1)', $description);
263} 263}
264 264
265/** 265/**