Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
DeppWang committed May 5, 2024
1 parent dd316c3 commit 9fb3066
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,9 @@ def test_html_to_markdown(self):
from markdownify import markdownify as md

new_content = md(
f"""<div><span style='color: rgb(68, 68, 68); line-height: 1.5; font-family: "Monaco","Consolas","Lucida Console","Courier New","serif"; font-size: 12px; background-color: rgb(247, 247, 247);'><a href="http://bbs.pcbeta.com/viewthread-1095891-1-1.html">http://bbs.pcbeta.com/viewthread-1095891-1-1.html</a></span></div>
"""
f"""<div><span style='color: rgb(68, 68, 68); line-height: 1.5; font-family: "Monaco","Consolas","Lucida Console","Courier New","serif"; font-size: 12px; background-color: rgb(247, 247, 247);'><a href="http://bbs.pcbeta.com/viewthread-1095891-1-1.html">http://bbs.pcbeta.com/viewthread-1095891-1-1.html</a></span></div>"""
)
expected_content = """<http://bbs.pcbeta.com/viewthread-1095891-1-1.html>
"""
expected_content = """<http://bbs.pcbeta.com/viewthread-1095891-1-1.html>"""
self.assertEqual(new_content, expected_content)

def test_covert_json_to_markdown_content(self):
Expand Down

0 comments on commit 9fb3066

Please sign in to comment.