MrDian / pagedown

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

Allow empty strings in code blocks (with ```) #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When empty line appears in code block (marked with triple backqoute) it breaks 
to simple paragraphs with "```" after <p> and before </p>.

Original issue reported on code.google.com by gros...@gmail.com on 3 Apr 2012 at 8:21

GoogleCodeExporter commented 9 years ago
Original markdown has such behavior too.

Original comment by gros...@gmail.com on 3 Apr 2012 at 9:26

GoogleCodeExporter commented 9 years ago
Triple-backtick codeblocks are not supported by Pagedown, they are not an 
originial Markdown feature, but an extension invented by GitHub (called "fenced 
codeblocks"): http://github.github.com/github-flavored-markdown/

We are currently considering to add it; see 
http://meta.stackoverflow.com/questions/125148/implement-style-markdown-code-blo
cks

But until that's the case, the behavior you're seeing is correct.

Original comment by b...@stackoverflow.com on 4 Apr 2012 at 8:57