Merge pull request #525 from ArthurHoaro/plugins/feeds-markdown2

Process feeds content with Markdown
This commit is contained in:
Arthur 2016-04-09 16:35:41 +02:00
commit 9486a2e929

View file

@ -33,6 +33,25 @@ function hook_markdown_render_linklist($data)
return $data;
}
/**
* Parse feed linklist descriptions.
*
* @param array $data linklist data.
*
* @return mixed linklist data parsed in markdown (and converted to HTML).
*/
function hook_markdown_render_feed($data)
{
foreach ($data['links'] as &$value) {
if (!empty($value['tags']) && noMarkdownTag($value['tags'])) {
continue;
}
$value['description'] = process_markdown($value['description']);
}
return $data;
}
/**
* Parse daily descriptions.
*