Hanging indent on lists

I don't know if I am doing this wrong as it doesn't seem to work in the Markdown preview of this forum but copying and pasting Gruber's list indent example does not work:

*   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
    viverra nec, fringilla in, laoreet vitae, risus.
*   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
    Suspendisse id sem consectetuer libero luctus adipiscing.
It produces:
  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
  • Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
  1. I think perhaps you're misunderstanding Markdown's list syntax. That
    example works properly, creating two list items.

    What are you expecting it to do?

    F-

  2. Fletcher closed this discussion on 01 Mar, 2014 06:41 PM.

  3. philip re-opened this discussion on 21 Mar, 2014 11:19 AM

  4. The 2nd line isn't line-breaking ala a "hanging indent". So to me "viverra nec, fringilla in, laoreet vitae, risus." and "Suspendisse id sem consectetuer libero luctus adipiscing." should be on new lines, indented to match the bullets.

    Am I misunderstanding this?

  5. You realize that Markdown treats sequential lines as a single paragraph, right?

  6. Yep yep. Ok so if I add double-spaces to the end of lines of bullet points that I want to be hanging indents it reformats as I expect after enter is pressed. Is it intentional that MMDC reformats only after enter is pressed but not whether that break is kept? See attached mov.

    • mmdc_hangin_indent.mov (available to support staff) 278 KB
  7. Philip,

    There's a strange bug in Apple's WebView... Inserting "x" to the source
    HTML is fine. But inserting " " (a space) into the WebView causes it to
    jump unpredictably to the top/bottom/somewhere. The only fix I could
    find was to not refresh when typing a space character. As soon as you
    type/delete something else, it will refresh.

    Fletcher

  8. Hey Fletcher,

    No worries. I believe some of my original confusion re hanging indents came from this misunderstanding.

    Thanks for your help.

  9. philip closed this discussion on 31 Mar, 2014 07:41 AM.

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

Recent Discussions