aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-08-15 12:59:57 +0200
committerGitHub <noreply@github.com>2019-08-15 12:59:57 +0200
commit188a99db99288d60001e8d83ecf1103b9919ed1e (patch)
treefe897d8c07b8e9bc6319734051eb8eab99d0f1cf /plugins
parent5669f474f329c13f87823acc3862fd24ff00a65e (diff)
parent354fb98cc96595870c1962d5939f0bab24951ffa (diff)
downloadShaarli-188a99db99288d60001e8d83ecf1103b9919ed1e.tar.gz
Shaarli-188a99db99288d60001e8d83ecf1103b9919ed1e.tar.zst
Shaarli-188a99db99288d60001e8d83ecf1103b9919ed1e.zip
Merge pull request #1355 from ArthurHoaro/hotfix/feed-md-directlink
Markdown plugin: fix RSS feed direct link reverse
Diffstat (limited to 'plugins')
-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/**