feat: Renderer add nonbreakable spaces and halfwidth spaces

This commit is contained in:
Johanna Riedel
2024-12-07 17:26:14 +01:00
parent 6ffec75332
commit 5a4e6554c0
5 changed files with 97 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
import mistletoe
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
from test.util import paragraph
def test_halfwidth_space_html():
input = "Dies ist z.B. ein Test. D.h. hier sollten d.h. Spaces ersetzt worden sein."
target = "Dies ist z. B. ein Test. D. h. hier sollten d. h. Spaces ersetzt worden sein."
assert mistletoe.markdown(input, FiftyOhmHtmlRenderer) == paragraph(target)