• Suck_on_my_Presence@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Okay. Unrelated and it’s driving me insane.

    How do I do line breaks for lists like that? If I do two hits of Enter, it acts like a new paragraph in total. But I can’t get it to just jump down to the next line, it just follows after the one above it as if it were continuing a sentence. Bwah!

    • Cruxifux@feddit.nl
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      I just press enter

      Leave a space in the blank line here then press enter

      There you go, break in the paragraph.

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      3 months ago

      In Markdown, if you want a paragraph break, then whack Enter twice. That is, this:

      foo
      
      bar
      

      Gives this:

      foo

      bar

      If you want a line break, then add a backslash or two spaces at the end of the line, and then hit Enter. That is, this (you can’t see it, but two spaces after “foo”):

      foo  
      bar\
      baz
      

      Gives this:

      foo
      bar
      baz

      When I’m doing an actual list, I generally prefer to do either an unnumbered or numbered list, though.

      * foo
      * bar
      

      Gives this:

      • foo
      • bar

      And for numbered lists:

      1. foo
      2. bar
      

      Gives this:

      1. foo
      2. bar

      It doesn’t look from that like Markdown is buying you much with the numbered lists (traditionally in Markdown, numbered lists were auto-renumbered, which is IMHO a bad idea and is one feature of Markdown that is not implemented here), but this gets useful if you want to do lists with multiple lines, which is done with a four-space prefix on successive lines:

      1. foo\
          My dog adores foo.
      2. bar\
          Some cats fancy bar.
      

      Gives this:

      1. foo
        My dog adores foo.
      2. bar
        Some cats fancy bar.