feature: add quote renderer

This commit is contained in:
Prof. Dr. Matthias Jung DL9MJ
2024-12-07 15:04:43 +01:00
parent 4ee801b41e
commit dbe548c9e3
3 changed files with 30 additions and 0 deletions
View File
+19
View File
@@ -0,0 +1,19 @@
import mistletoe
from test.util import paragraph
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
def test_quote_html() :
assertions = {
'"quote"' : '„quote“',
'" quote "' : '„ quote “',
'"quote" "' : '„quote“ "',
'"quo te1" filltext "qu ot e2"' : '„quo te1“ filltext „qu ot e2“',
'"quo *te1*" filltext "qu ot e2"' : '„quo <em>te1</em>“ filltext „qu ot e2“',
'""' : '""',
}
for assertion in assertions:
assert mistletoe.markdown(assertion, FiftyOhmHtmlRenderer) == paragraph(assertions[assertion])