Skip to content

Commit

Permalink
Bump markdown-it-py version
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Mar 28, 2020
1 parent 6214cd9 commit 626e5c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
keywords="markdown lexer parser development docutils sphinx",
python_requires=">=3.6",
install_requires=["markdown-it-py~=0.3.2"],
install_requires=["markdown-it-py~=0.4"],
extras_require={
"sphinx": ["pyyaml", "docutils>=0.15", "sphinx>=2,<3"],
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"],
Expand Down
19 changes: 5 additions & 14 deletions tests/test_commonmark/test_commonmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,15 @@ def test_commonmark(entry):
pytest.skip(
"Thematic breaks on the first line conflict with front matter syntax"
)
if entry["example"] in [108, 334]:
# TODO fix failing empty code span tests (awaiting upstream);
# ``` ``` -> <code> </code> not <code></code>
pytest.skip("empty code span spacing")
if entry["example"] in [
171, # [foo]: /url\\bar\\*baz \"foo\\\"bar\\baz\"\n\n[foo]\n
306, # <http://example.com?find=\\*>\n
308, # [foo](/bar\\* \"ti\\*tle\")\n
309, # [foo]\n\n[foo]: /bar\\* \"ti\\*tle\"\n
310, # ``` foo\\+bar\nfoo\n```\n
502, # [link](/url \"title \\\"&quot;\")\n
599, # <http://example.com/\\[\\>\n
]:
# TODO fix url backslash escaping (awaiting upstream)
if entry["example"] == 599: # <http://example.com/\\[\\>\n
# TODO awaiting upstream fix
pytest.skip("url backslash escaping")
test_case = entry["markdown"]
output = to_html(test_case)

if entry["example"] == 593:
# this doesn't have any bearing on the output
output = output.replace("mailto", "MAILTO")
if entry["example"] in [187, 209, 210]:
# this doesn't have any bearing on the output
output = output.replace(
Expand Down

0 comments on commit 626e5c5

Please sign in to comment.