Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/test_port/fixtures/normalize.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ Don't encode domains in unknown schemas:
.
<p><a href="skype:%CE%B3%CE%B3%CE%B3"></a></p>
.


Square brackets are allowed
.
[foo](https://bar]baz.org)
.
<p><a href="https://bar%5Dbaz.org">foo</a></p>
.
5 changes: 4 additions & 1 deletion tests/test_port/test_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down