Process feeds content with Markdown

This commit is contained in:
ArthurHoaro 2016-03-12 18:39:57 +01:00
parent 5f143b72ea
commit 635d38c241

View file

@ -33,6 +33,25 @@ function hook_markdown_render_linklist($data)
return $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. * Parse daily descriptions.
* *