add markdown parsing
This commit is contained in:
parent
3c14be416a
commit
46f7bc451d
3 changed files with 43 additions and 0 deletions
7
tests/test_markdown.py
Normal file
7
tests/test_markdown.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from zona.markdown import md_to_html
|
||||
|
||||
|
||||
def test_render():
|
||||
content = "# Hello World!"
|
||||
out = md_to_html(content)
|
||||
assert out.strip() == "<h1>Hello World!</h1>"
|
Loading…
Add table
Add a link
Reference in a new issue