X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fmarkdown%2Fmarkdown.php;h=f6f66cc561fc0c697e06c1b2776c5d09510b299b;hb=refs%2Fpull%2F1355%2Fhead;hp=9928a4885e1f3616a7251da4dda723260315984f;hpb=a932f486f20f3daf8ad657d8d39a6d6c316e66eb;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 9928a488..f6f66cc5 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php @@ -7,6 +7,7 @@ */ use Shaarli\Config\ConfigManager; +use Shaarli\Plugin\PluginManager; use Shaarli\Router; /* @@ -258,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); } /**