diff --git a/markdown.py b/markdown.py
index 9bb7cafe2..24908768b 100644
--- a/markdown.py
+++ b/markdown.py
@@ -19,6 +19,10 @@ def _markdown_emphasis_html(markdown: str) -> str:
'**;': ';',
'**,': ',',
'**\n': '\n',
+ '>**': '>',
+ '**<': '<',
+ '>*': '>',
+ '*<': '<',
' *': ' ',
'* ': ' ',
'*.': '.',
@@ -302,4 +306,8 @@ def markdown_to_html(markdown: str) -> str:
break
html_str += line
ctr += 1
+
+ html_str = html_str.replace('
')
+
return html_str
diff --git a/tests.py b/tests.py
index b35654c49..c9278b735 100644
--- a/tests.py
+++ b/tests.py
@@ -5715,14 +5715,19 @@ def _test_markdown_to_html():
markdown = 'This is a quotation:\n' + \
'> Some quote or other'
- assert markdown_to_html(markdown) == 'This is a quotation:
', '')
+ html_str = html_str.replace('
', '
' + \
+ expected = \
+ 'This is a quotation:
\n' + \
'
Some quote or other' + result = markdown_to_html(markdown) + if result != expected: + print(result) + assert result == expected markdown = 'This is a multi-line quotation:\n' + \ '> The first line\n' + \ '> The second line' assert markdown_to_html(markdown) == \ - 'This is a multi-line quotation:
The first line The second line' markdown = 'This is a list of points:\n' + \ @@ -5731,8 +5736,23 @@ def _test_markdown_to_html(): 'And some other text.' result = markdown_to_html(markdown) expected = \ - 'This is a list of points:
10 PRINT "YOLO"
' + \
- '20 GOTO 10
\n' + \
+ '10 PRINT "YOLO"
\n' + \
+ '20 GOTO 10
\n' + \
+ '
\n' + \
+ '