Skip to content

Commit 1c4cc76

Browse files
committed
Fix a syntax error in markdown tests
1 parent aa07b0c commit 1c4cc76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bloom_nofos/nofos/tests/test_nofo_markdown.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def test_regular_p(self):
298298

299299
def test_regular_p_asterisk(self):
300300
html = "<p>Regular Paragraph with asterisk *</p>"
301-
expected_markdown = "Regular Paragraph with asterisk \*"
301+
expected_markdown = "Regular Paragraph with asterisk \\*"
302302
md_body = md(html)
303303
self.assertEqual(md_body.strip(), expected_markdown.strip())
304304

@@ -310,13 +310,13 @@ def test_regular_p_in_td(self):
310310

311311
def test_regular_p_asterisk_in_td(self):
312312
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 \\* |"
314314
md_body = md(html)
315315
self.assertEqual(md_body.strip(), expected_markdown.strip())
316316

317317
def test_regular_p_asterisk_in_th(self):
318318
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 |"
320320
md_body = md(html)
321321
self.assertEqual(md_body.strip(), expected_markdown.strip())
322322

0 commit comments

Comments
 (0)