Skip to content
This repository has been archived by the owner. It is now read-only.

Text immediately preceding a list #13

Open
danxshap opened this issue Mar 27, 2014 · 1 comment
Open

Text immediately preceding a list #13

danxshap opened this issue Mar 27, 2014 · 1 comment

Comments

@danxshap
Copy link
Contributor

In Github I can type:

My List:
+ One
+ Two
+ Three

And it will look like:

My List:

  • One
  • Two
  • Three

Which is:

<p>My List:</p>
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>

But with py-gfm I'm getting this:

In [10]: markdown('My List:\n+ One\n+ Two\n +Three', extensions=[gfm])
Out[10]: u'<p>My List:<br />\n+ One<br />\n+ Two<br />\n +Three</p>'

The consequence is that if you want to write a line of text to precede your list, you need to remember to add a full blank line in between or else you won't have a list at all.

Any idea how to fix this?

Thank you!

@nex3
Copy link
Contributor

nex3 commented Mar 27, 2014

It's been a while since I've touched this code, but this comment indicates that this is a difficult feature to supportin the context of the Python markdown library. I don't think it's impossible, but I'm not sure what the best way to make it work is either.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants