File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ def test_regular_p(self):
298
298
299
299
def test_regular_p_asterisk (self ):
300
300
html = "<p>Regular Paragraph with asterisk *</p>"
301
- expected_markdown = "Regular Paragraph with asterisk \*"
301
+ expected_markdown = "Regular Paragraph with asterisk \\ *"
302
302
md_body = md (html )
303
303
self .assertEqual (md_body .strip (), expected_markdown .strip ())
304
304
@@ -310,13 +310,13 @@ def test_regular_p_in_td(self):
310
310
311
311
def test_regular_p_asterisk_in_td (self ):
312
312
html = "<table><tr><th><p>Header</p></th></tr><tr><td><p>Content *</p></td></tr></table>"
313
- expected_markdown = "| Header |\n | --- |\n | Content \* |"
313
+ expected_markdown = "| Header |\n | --- |\n | Content \\ * |"
314
314
md_body = md (html )
315
315
self .assertEqual (md_body .strip (), expected_markdown .strip ())
316
316
317
317
def test_regular_p_asterisk_in_th (self ):
318
318
html = "<table><tr><th><p>Header *</p></th></tr><tr><td><p>Content</p></td></tr></table>"
319
- expected_markdown = "| Header \* |\n | --- |\n | Content |"
319
+ expected_markdown = "| Header \\ * |\n | --- |\n | Content |"
320
320
md_body = md (html )
321
321
self .assertEqual (md_body .strip (), expected_markdown .strip ())
322
322
You can’t perform that action at this time.
0 commit comments