Hanging indent on lists

philip's Avatar

philip

13 Feb, 2014 02:51 PM

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. Support Staff 1 Posted by Fletcher on 13 Feb, 2014 03:12 PM

    Fletcher's Avatar

    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. 2 Posted by philip on 21 Mar, 2014 11:19 AM

    philip's Avatar

    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. Support Staff 3 Posted by Fletcher on 21 Mar, 2014 11:50 PM

    Fletcher's Avatar

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

  6. 4 Posted by philip on 29 Mar, 2014 01:34 PM

    philip's Avatar

    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.

  7. Support Staff 5 Posted by Fletcher on 29 Mar, 2014 05:01 PM

    Fletcher's Avatar

    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. 6 Posted by philip on 31 Mar, 2014 07:41 AM

    philip's Avatar

    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