feature: First tag implementation

This commit is contained in:
Prof. Dr. Matthias Jung DL9MJ
2024-12-07 20:20:49 +01:00
parent fbb26a8dd1
commit 2b05db77a4
3 changed files with 48 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
import mistletoe
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
def test_tag_html() :
assertions = {
"<margin>\nFoo\n</margin>" : '<div class="margin"><p>Foo</p></div>\n',
"<indepth>\nFoo\n</indepth>" : '<div class="indepth"><p>Foo</p></div>\n',
}
for assertion in assertions:
assert mistletoe.markdown(assertion, FiftyOhmHtmlRenderer) == assertions[assertion]