feature: add latex dash
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import mistletoe
|
import mistletoe
|
||||||
|
|
||||||
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
|
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
|
||||||
|
from renderer.fifty_ohm_latex_renderer import FiftyOhmLaTeXRenderer
|
||||||
from test.util import paragraph
|
from test.util import paragraph
|
||||||
|
|
||||||
|
|
||||||
@@ -12,3 +13,12 @@ def test_dash_html() :
|
|||||||
|
|
||||||
for assertion in assertions:
|
for assertion in assertions:
|
||||||
assert mistletoe.markdown(assertion, FiftyOhmHtmlRenderer) == paragraph(assertions[assertion])
|
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]
|
||||||
|
|||||||
Reference in New Issue
Block a user