Closed weyou closed 5 years ago
import io, mistletoe text = """ ### A part 1. a1 2. a2 3. a3 4. a4 ### B part 1. b1 2. b2 3. b3 4. b4 """ with io.StringIO(text) as fd: html = mistletoe.markdown(fd) print(html)
output
<h3>A part</h3> <ol> <li> <p>a1</p> </li> <li> <p>a2</p> </li> <li> <p>a3</p> </li> <li> <p>a4</p> </li> </ol> <h3>B part</h3> <ol> <li>b1</li> <li>b2</li> <li>b3</li> <li>b4</li> </ol>
Note that the list in A part rendered as <li><p>text</p></li>, but B part rendered as <li>text</li>.
<li><p>text</p></li>
<li>text</li>
What's the difference between part A and part B? I think both of them should be rendered as the same html code.
Duplicate of #65
output
Note that the list in A part rendered as
<li><p>text</p></li>
, but B part rendered as<li>text</li>
.What's the difference between part A and part B? I think both of them should be rendered as the same html code.