/** * Parse daily descriptions. * * @param array $data daily data. * * @return mixed daily data parsed in markdown (and converted to HTML). */ function hook_markdown_render_daily($data) { // Manipulate columns data foreach ($data['cols'] as &$value) { foreach ($value as &$value2) { $value2['formatedDescription'] = process_markdown($value2['formatedDescription']); } } return $data; }
/** * Parse daily descriptions. * * @param array $data daily data. * * @return mixed daily data parsed in markdown (and converted to HTML). */ function hook_markdown_render_daily($data) { // Manipulate columns data foreach ($data['cols'] as &$value) { foreach ($value as &$value2) { if (!empty($value2['tags']) && noMarkdownTag($value2['tags'])) { continue; } $value2['formatedDescription'] = process_markdown($value2['formatedDescription']); } } return $data; }