From b4c0f1f8564a7964bee95463e52cd14fe20bb39b Mon Sep 17 00:00:00 2001 From: "Prof. Dr. Matthias Jung DL9MJ" Date: Sun, 8 Dec 2024 16:57:24 +0100 Subject: [PATCH] feature: add latex dash --- test/test_dash.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_dash.py b/test/test_dash.py index 2289b0c..7fa363e 100644 --- a/test/test_dash.py +++ b/test/test_dash.py @@ -1,6 +1,7 @@ import mistletoe from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer +from renderer.fifty_ohm_latex_renderer import FiftyOhmLaTeXRenderer from test.util import paragraph @@ -12,3 +13,12 @@ def test_dash_html() : for assertion in assertions: assert mistletoe.markdown(assertion, FiftyOhmHtmlRenderer) == paragraph(assertions[assertion]) + +def test_dash_latex() : + + assertions = { + "Foo - Bar" : "\nFoo -- Bar\n", + } + + for assertion in assertions: + assert mistletoe.markdown(assertion, FiftyOhmLaTeXRenderer) == assertions[assertion]