diff options
Diffstat (limited to 'plugins/markdown')
-rw-r--r-- | plugins/markdown/markdown.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index d4fb1f76..08e64dae 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php | |||
@@ -216,6 +216,15 @@ function reverse_text2clickable($description) | |||
216 | $descriptionLine | 216 | $descriptionLine |
217 | ); | 217 | ); |
218 | 218 | ||
219 | // Make hashtag links markdown ready, otherwise the links will be ignored with escape set to true | ||
220 | if (!$codeBlockOn && !$codeLineOn) { | ||
221 | $descriptionLine = preg_replace( | ||
222 | '#<a href="([^ ]*)"'. $hashtagTitle .'>([^<]+)</a>#m', | ||
223 | '[$2]($1)', | ||
224 | $descriptionLine | ||
225 | ); | ||
226 | } | ||
227 | |||
219 | $descriptionOut .= $descriptionLine; | 228 | $descriptionOut .= $descriptionLine; |
220 | if ($lineCount++ < count($descriptionLines) - 1) { | 229 | if ($lineCount++ < count($descriptionLines) - 1) { |
221 | $descriptionOut .= PHP_EOL; | 230 | $descriptionOut .= PHP_EOL; |