$data = array(
'links' => array(array(
'description' => $str,
- 'tags' => NO_MD_TAG
+ 'tags' => NO_MD_TAG,
+ 'taglist' => array(NO_MD_TAG),
))
);
// nth link
0 => array(
'formatedDescription' => $str,
- 'tags' => NO_MD_TAG
+ 'tags' => NO_MD_TAG,
+ 'taglist' => array(),
),
),
),
$data = hook_markdown_render_daily($data);
$this->assertEquals($str, $data['cols'][0][0]['formatedDescription']);
}
+
+ /**
+ * Test hashtag links processed with markdown.
+ */
+ function testMarkdownHashtagLinks()
+ {
+ $md = file_get_contents('tests/plugins/resources/markdown.md');
+ $md = format_description($md);
+ $html = file_get_contents('tests/plugins/resources/markdown.html');
+
+ $data = process_markdown($md);
+ $this->assertEquals($html, $data);
+ }
}