-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ordered list in unordered list doesn't work #364
Comments
This is intentional behaviour, and isn't considered a bug in Python Markdown; see, for example, #172 and #125 (the latter covers this exact behaviour, the former has a bit more information on the reason this isn't considered a bug). You need to use four spaces in your indents, so the below should work as expected:
|
I'm sorry. I couldn't find previous bug reports. |
I have the same problem. Tried your example with 4 spaces and got wrong results:
|
@RyperHUN You need an empty line before the lists, both the outer and the inner. This input: Test2:
1. aaaaa
2. bbbbb
* ccccc
* ddddd
3. eeee Gives expected result: <p>Test2:</p>
<ol>
<li>aaaaa</li>
<li>
<p>bbbbb</p>
<ul>
<li>ccccc</li>
<li>ddddd</li>
<li>eeee</li>
</ul>
</li>
</ol> |
When unordered lists are nested in ordered lists, the output of Python Markdown is not correct.
Input:
Output of John Gruber's Markdown:
Python markdown:
The text was updated successfully, but these errors were encountered: