Bug Report

's Avatar


21 Sep, 2011 07:50 PM


When just testing Marked, I noticed that the following does not render properly:

  • list 1
  • list 2
    • list 2a
  • list 3

    codeSample() {



extra paragraph elements are inserted in the list and the codeSample() is not formatted as code. Inserting some normal text between the list and the code makes it render correctly:

  • list 1
  • list 2
    • list 2a
  • list 3

normal text

  1. Support Staff 1 Posted by Brett on 21 Sep, 2011 08:40 PM

    Brett's Avatar

    Marked uses the straight MultiMarkdown 3 implementation, so this is not a rendering bug specific to Marked. The reason it happens is because list items allow for multiple paragraphs within each item, and your code block is viewed as a continuing paragraph rather than an indented code block.

    Adding any element that begins flush against the left will break the list and let you begin an indented code block following, or use backticks to delimit the code block instead of indentation.

  2. 2 Posted by Lee Taylor on 22 Sep, 2011 03:14 AM

    Lee Taylor's Avatar

    Hi Brett,

    Thanks for the info. I guess this makes sense why the code block isn't formatted correctly. Still seems strange that it causes <p> tags to be inserted into the earlier list items, but I guess it is what it is.


    Lee Taylor

  3. Brett closed this discussion on 25 Sep, 2011 01:51 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac