Which is the correct way to create bullet points in Markdown — using space+hyphen or tab+hyphen ?

- first level bullet point
 - space+hyphen 
- first level bullet point
    - tab+hyphen 
  • boatswain@infosec.pub
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    2 days ago

    I believe either will work, so your call. If you really want to spark a tabs vs spaces holy war, I’ll throw my vote in for tabs: they’re semantic, whereas spaces are not–the meaning of a tab is “this is one level of indentation”. Using spaces for indentation is like using <span class="italic"> instead of <i> for italics.

  • Korthrun@lemmy.sdf.org
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    In the great tabs v spaces debate I am pro spaces.

    However context is important. In Obsidian I can’t press shift+space to unindent, I can do this with shift+tab. So in Obsidian I use tabs.

    I don’t intend to access these files outside of Obsidian 99% of the time, so I never bothered to flip on the setting that inserts spaces when you use the tab key.

  • 667@lemmy.radio
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    I’ve always used hyphens because if I later need to look at or parse the source, it may be difficult to tell what my intentions were. Moreso if for whatever reason I need to code something to handle my files—an unlikely case, but the small effort over time will be instantly realized.

      • phr
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        2 days ago

        i insist on my editors replacing tab with four spaces … so spaces. i do see the pain for parsing tho.

        • happeningtofry99158@lemmy.worldOP
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          In Obsidian, I can easily indent a bullet point with tab and Obsidian uses tab indentation by default, is there a way to change that (to space indentation)?

          • phr
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            frankly i dont know, it has been a while since i used it.