Merge pull request #525 from ArthurHoaro/plugins/feeds-markdown2
Process feeds content with Markdown
This commit is contained in:
commit
9486a2e929
1 changed files with 19 additions and 0 deletions
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue