File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed
Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,10 @@ def _nested_markdown_in_html(self, items):
174174 else : # raw html
175175 if len (items ) - right_listindex <= 1 : # last element
176176 right_listindex -= 1
177+ offset = 1 if i == right_listindex else 0
177178 placeholder = self .markdown .htmlStash .store ('\n \n ' .join (
178- items [i :right_listindex + 1 ]))
179- del items [i :right_listindex + 1 ]
179+ items [i :right_listindex + offset ]))
180+ del items [i :right_listindex + offset ]
180181 items .insert (i , placeholder )
181182 return items
182183
Original file line number Diff line number Diff line change 2727Raw html blocks may also be nested.
2828</ div >
2929
30-
31-
3230</ div >
3331< p > This text is after the markdown in html.</ p >
3432< div name ="issue308 ">
3533< p > < span > 1</ span >
3634< span > 2</ span > </ p >
37- </ div >
35+ </ div >
36+ < div name ="issue368 ">
37+ < p > Markdown is < em > active</ em > here.</ p >
38+ < div name ="RawHtml ">
39+ Raw html blocks may also be nested.
40+ </ div >
41+
42+ < p > Markdown is < em > still</ em > active here.</ p >
43+ </ div >
44+ < p > Markdown is < em > active again</ em > here.</ p >
Original file line number Diff line number Diff line change @@ -51,3 +51,17 @@ This text is after the markdown in html.
5151<span>2</span>
5252
5353</div>
54+
55+ <div markdown="1" name="issue368">
56+
57+ Markdown is *active* here.
58+
59+ <div name="RawHtml">
60+ Raw html blocks may also be nested.
61+ </div>
62+
63+ Markdown is *still* active here.
64+
65+ </div>
66+
67+ Markdown is *active again* here.
You can’t perform that action at this time.
0 commit comments