File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -178,10 +178,11 @@ def _nested_markdown_in_html(self, items):
178178 else : # raw html
179179 if len (items ) - right_listindex <= 1 : # last element
180180 right_listindex -= 1
181- offset = 1 if i == right_listindex else 0
181+ if right_listindex <= i :
182+ right_listindex = i + 1
182183 placeholder = self .markdown .htmlStash .store ('\n \n ' .join (
183- items [i :right_listindex + offset ]))
184- del items [i :right_listindex + offset ]
184+ items [i :right_listindex ]))
185+ del items [i :right_listindex ]
185186 items .insert (i , placeholder )
186187 return items
187188
Original file line number Diff line number Diff line change 4141
4242< p > Markdown is < em > still</ em > active here.</ p >
4343</ div >
44- < p > Markdown is < em > active again</ em > here.</ p >
44+ < p > Markdown is < em > active again</ em > here.</ p >
45+ < div >
46+ < p > foo bar</ p >
47+ < p > < em > bar</ em >
48+ </ p >
49+ </ div >
Original file line number Diff line number Diff line change @@ -65,3 +65,9 @@ Markdown is *still* active here.
6565</div>
6666
6767Markdown is *active again* here.
68+
69+ <div markdown=1>
70+ foo bar
71+
72+ <em>bar</em>
73+ </div>
You can’t perform that action at this time.
0 commit comments