diff --git a/tests/test_port/fixtures/normalize.md b/tests/test_port/fixtures/normalize.md index 0020e16d..4a005089 100644 --- a/tests/test_port/fixtures/normalize.md +++ b/tests/test_port/fixtures/normalize.md @@ -29,3 +29,11 @@ Don't encode domains in unknown schemas: .

. + + +Square brackets are allowed +. +[foo](https://bar]baz.org) +. +

foo

+. diff --git a/tests/test_port/test_fixtures.py b/tests/test_port/test_fixtures.py index 4e0c94d5..5e94a149 100644 --- a/tests/test_port/test_fixtures.py +++ b/tests/test_port/test_fixtures.py @@ -84,7 +84,10 @@ def test_commonmark_extras(line, title, input, expected): read_fixture_file(FIXTURE_PATH.joinpath("normalize.md")), ) def test_normalize_url(line, title, input, expected): - if "Keep %25" in title: + if title in { + "Keep %25 as is because decoding it may break urls, #720", + "Square brackets are allowed", + }: # TODO fix failing url escaping test pytest.xfail("url normalisation") md = MarkdownIt("commonmark")