Issue with headers nested within lists

ryan's Avatar

ryan

17 Sep, 2013 08:59 PM

The following does not parse correctly with Marked:

### Setup
* List item
* List item 2

  #### Section within list item
  Some text

  #### Section 2 within list item
  Some text

This is meant to be used on Github, where it's parsed great, and renders as you'd expect. The official Markdown Dingus also renders this correctly.

  1. Support Staff 1 Posted by Brett on 17 Sep, 2013 09:06 PM

    Brett's Avatar

    This syntax won't work in MultiMarkdown. You need to set up a custom processor if you want to use it.

  2. Support Staff 2 Posted by Brett on 17 Sep, 2013 09:10 PM

    Brett's Avatar

    By the way, if you use a little whitespace and indent 4 instead of 2 spaces, it will work. Never understood why people are so averse to blank lines...

    ### Setup

    * List item
    * List item 2
      
        #### Section within list item
      
        Some text
      
        #### Section 2 within list item
      
        Some text

  3. 3 Posted by ryan on 17 Sep, 2013 10:00 PM

    ryan's Avatar

    Ah, it's the indent that I really needed. I already had blank lines around my H4's. Thanks!

  4. Brett closed this discussion on 21 Sep, 2013 08:09 PM.

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

Keyboard shortcuts

Generic

? 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