Process feeds content with Markdown

This commit is contained in:
ArthurHoaro 2016-03-12 18:39:57 +01:00
parent 5f143b72ea
commit 635d38c241
1 changed files with 19 additions and 0 deletions

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.
*