1
0
favro-sync/test/test_markdown_parsing.py
Jon Michael Aanes cb9593b744
Some checks failed
Test Python / Test (push) Failing after 24s
Parse and map markdown
2024-09-27 16:13:03 +02:00

20 lines
365 B
Python

from favro_sync.favro_markdown import parse_card_contents, format_card_contents
EXAMPLE_TEXT_1 = '''
# Hello world
Test description
## Other header
1. Derp
2. Derp
3. Derp
'''.strip()
def test_parse_and_render():
card_contents = parse_card_contents(EXAMPLE_TEXT_1)
print(card_contents)
assert format_card_contents(card_contents) == EXAMPLE_TEXT_1