File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def parse_line(line, in_list):
66
66
if not re .match ('<h|<ul|<li' , res ):
67
67
res = wrap (res , 'p' )
68
68
69
- if not re . match ( '(<ul>)?<li>_(.*)' , res ) :
69
+ if list_match is None :
70
70
res = re .sub ('(.*)(<li>)(.*)(</li>)(.*)' , r'\1\2<p>\3</p>\4\5' , res )
71
71
72
72
while check_bold (res ):
Original file line number Diff line number Diff line change 2
2
from markdown import parse_markdown
3
3
4
4
5
- # Tests adapted from `problem-specifications//canonical-data.json` @ v1.0 .0
5
+ # Tests adapted from `problem-specifications//canonical-data.json` @ v1.1 .0
6
6
7
7
8
8
class TestMarkdown (unittest .TestCase ):
@@ -37,8 +37,8 @@ def test_h6(self):
37
37
38
38
def test_unordered_lists (self ):
39
39
self .assertEqual (parse_markdown ('* Item 1\n * Item 2' ),
40
- '<ul><li><p> Item 1</p> </li>'
41
- '<li><p> Item 2</p> </li></ul>' )
40
+ '<ul><li>Item 1</li>'
41
+ '<li>Item 2</li></ul>' )
42
42
43
43
def test_little_bit_of_everything (self ):
44
44
self .assertEqual (parse_markdown (
You can’t perform that action at this time.
0 commit comments