diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/markdown/markdown.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 544ed22e..57fcce32 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php | |||
@@ -34,6 +34,25 @@ function hook_markdown_render_linklist($data) | |||
34 | } | 34 | } |
35 | 35 | ||
36 | /** | 36 | /** |
37 | * Parse feed linklist descriptions. | ||
38 | * | ||
39 | * @param array $data linklist data. | ||
40 | * | ||
41 | * @return mixed linklist data parsed in markdown (and converted to HTML). | ||
42 | */ | ||
43 | function hook_markdown_render_feed($data) | ||
44 | { | ||
45 | foreach ($data['links'] as &$value) { | ||
46 | if (!empty($value['tags']) && noMarkdownTag($value['tags'])) { | ||
47 | continue; | ||
48 | } | ||
49 | $value['description'] = process_markdown($value['description']); | ||
50 | } | ||
51 | |||
52 | return $data; | ||
53 | } | ||
54 | |||
55 | /** | ||
37 | * Parse daily descriptions. | 56 | * Parse daily descriptions. |
38 | * | 57 | * |
39 | * @param array $data daily data. | 58 | * @param array $data daily data. |