Skip to content
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

early list termination with multi-paragrah list items containing a blank line #313

Closed
minektur opened this issue May 29, 2014 · 2 comments
Closed

Comments

@minektur
Copy link

#!/usr/local/bin/python2.7
from markdown import markdown
testinput = """* a b
  c"""
output = markdown(testinput)
print output

Yields

<ul>
<li>a b</li>
</ul>
<p>c</p>

When it should yield

<ul>
<li><p>foo</p>

<p>bar</p></li>
</ul>

at least according to http://daringfireball.net/projects/markdown/dingus

data may be available at: http://pastebin.com/fiCx80P4

@minektur
Copy link
Author

hm... seems if I make 4 spaces instead of 2 on the last line after the break, It works. Is that the spec? where is the spec? :)

@waylan
Copy link
Member

waylan commented May 30, 2014

I would suggest reading the Differences section of the docs, specifically the second list item: "Indentation/Tab Length". As stated there, this is not a bug, but the intended behaviour. The bug is in other implementations.

@waylan waylan closed this as completed May 30, 2014
This was referenced Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants