def test_render_html(): text = u"Hello, **world**!" root = cmark.parse_document(text) result = cmark.render_html(root) assert result == '<p>Hello, <strong>world</strong>!</p>\n'
def test_parse_document(): text = u"Hello, **world**!" result = cmark.parse_document(text) assert result is not None