not support ordered lists(markdown) with code blocks #488

Closed
lishunli opened this Issue Mar 17, 2012 · 5 comments

Comments

Projects
None yet
4 participants
@lishunli

when i want a ordered lists with markdown, if add some code blocks, is don't work as normal. like:

issue

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost May 20, 2012

The Stackoverflow editor, which also uses Markdown, could maintain the ordered list correctly, but the codeblock (4 spaces ahead) will not be recognized. I think this is due to the Markdown parsers.

ghost commented May 20, 2012

The Stackoverflow editor, which also uses Markdown, could maintain the ordered list correctly, but the codeblock (4 spaces ahead) will not be recognized. I think this is due to the Markdown parsers.

@imathis

This comment has been minimized.

Show comment
Hide comment
@imathis

imathis May 23, 2012

Owner

Yes, this is due to the markdown parser. It sees the code block and breaks the list. You can make it work by using standard HTML tags. It's not as nice, but this is a limitation of the markdown parser.

Owner

imathis commented May 23, 2012

Yes, this is due to the markdown parser. It sees the code block and breaks the list. You can make it work by using standard HTML tags. It's not as nice, but this is a limitation of the markdown parser.

@imathis imathis closed this May 23, 2012

@lishunli

This comment has been minimized.

Show comment
Hide comment
@lishunli

lishunli May 26, 2012

@imathis thanks for your advice.

@imathis thanks for your advice.

@fgimian

This comment has been minimized.

Show comment
Hide comment
@fgimian

fgimian Oct 17, 2012

@imathis I must admit that this is a sore point for me too. Do you think that integration of redcarpet v2 with Octopress would resolve the issue as it's the same library used at Github which works correctly with code blocks in lists? If so, are there any plans to support it? :)

fgimian commented Oct 17, 2012

@imathis I must admit that this is a sore point for me too. Do you think that integration of redcarpet v2 with Octopress would resolve the issue as it's the same library used at Github which works correctly with code blocks in lists? If so, are there any plans to support it? :)

@lishunli lishunli referenced this issue in lishunli/lishunli.github.com May 12, 2013

Closed

Hello World #1

VincentTam added a commit to VincentTam/vincenttam.github.io that referenced this issue Jun 4, 2014

@leonsim

This comment has been minimized.

Show comment
Hide comment
@leonsim

leonsim Aug 28, 2015

Contributor

Got the same issue. Can we fix the markdown parser?

Contributor

leonsim commented Aug 28, 2015

Got the same issue. Can we fix the markdown parser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment