Skip to content

Commit

Permalink
💚 Fixed CI for new md parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Feb 28, 2021
1 parent 6862755 commit 7e896d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_roundtrip.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ def test_example_17(self) -> None: helper("[link](https://github.com)")
def test_example_18(self) -> None: helper("![img](https://github.com)")
def test_example_19(self) -> None: helper("""# h1\n## h2\n### h3\n#### h4\n##### h5\n###### h6""")
def test_example_20(self) -> None: helper("~~Nothing.~~")
def test_example_21(self) -> None: helper("```0")
# fmt: on
2 changes: 2 additions & 0 deletions unmarkd/unmarkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,6 @@ def detect_language(self, html: bs4.BeautifulSoup) -> str:
lang = classes[-1]
if lang.startswith("lang-"):
lang = lang[5:]
elif lang.startswith("language-"):
lang = lang[9:]
return lang

0 comments on commit 7e896d7

Please sign in to comment.