eternalmisa / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

An indented code block following a list, without an intervening paragraph, does not get formatted correctly #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open /browser/demo.html
2. Input the following text into the editor:

This is a bug.

    here is a code block, properly monospaced

But if I start a list,

* even if it only has one item

    and then I try to make a code block, it doesn't work.

On the other hand, if I start another normal paragraph first,

    code blocks work again

What is the expected output? What do you see instead?

"    and then I try to make a code block, it doesn't work." should be displayed 
as a code block. Instead it is included as part of the list element.

What version of the product are you using? On what operating system?

changeset:   21:44a4db795617
tag:         tip
user:        balpha
date:        Fri Mar 02 14:55:03 2012 +0100

Original issue reported on code.google.com by pjohnme...@gmail.com on 11 Apr 2012 at 3:22

GoogleCodeExporter commented 8 years ago
This is unfixable, because it's an ambiguity in the Markdown specification. See 
my extended explanation at http://meta.stackoverflow.com/a/99637/115866.

Original comment by b...@stackoverflow.com on 11 Apr 2012 at 3:25

GoogleCodeExporter commented 8 years ago
Yeah, I just came back to try to withdraw this because I re-read that part of 
the markdown spec trying to figure out how to fix it. Sorry to bother you.

Original comment by pjohnme...@gmail.com on 11 Apr 2012 at 3:53