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.
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
Support Staff 1 Posted by Fletcher on 13 Feb, 2014 03:12 PM
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-
Fletcher closed this discussion on 01 Mar, 2014 06:41 PM.
philip re-opened this discussion on 21 Mar, 2014 11:19 AM
2 Posted by philip on 21 Mar, 2014 11:19 AM
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?
Support Staff 3 Posted by Fletcher on 21 Mar, 2014 11:50 PM
You realize that Markdown treats sequential lines as a single paragraph, right?
4 Posted by philip on 29 Mar, 2014 01:34 PM
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.
Support Staff 5 Posted by Fletcher on 29 Mar, 2014 05:01 PM
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
6 Posted by philip on 31 Mar, 2014 07:41 AM
Hey Fletcher,
No worries. I believe some of my original confusion re hanging indents came from this misunderstanding.
Thanks for your help.
philip closed this discussion on 31 Mar, 2014 07:41 AM.