From f58ee5349ad53e19384ebe775b8714f0bfb2e00f Mon Sep 17 00:00:00 2001 From: tsutsu3 Date: Mon, 21 Dec 2020 23:01:50 +0900 Subject: [PATCH] Enabled typographer as in the js ver. --- tests/test_port/test_fixtures.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_port/test_fixtures.py b/tests/test_port/test_fixtures.py index 85d9f8cd..d19746ea 100644 --- a/tests/test_port/test_fixtures.py +++ b/tests/test_port/test_fixtures.py @@ -86,10 +86,11 @@ def test_normalize_url(line, title, input, expected): "line,title,input,expected", read_fixture_file(FIXTURE_PATH.joinpath("fatal.md")) ) def test_fatal(line, title, input, expected): - if line in [1, 17, 25]: + if line in [1, 17]: # TODO fix failing url escaping tests pytest.skip("url normalisation") - md = MarkdownIt("commonmark") + md = MarkdownIt("commonmark").enable("replacements") + md.options["typographer"] = True text = md.render(input) if text.rstrip() != expected.rstrip(): print(text)