• WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      12
      ·
      edit-2
      3 days ago

      I love it so much when reddit lemmy clients think they are smarter and they renumber points 5 to 1 as 5 to 9…

      edit: oops, still sometimes writing reddit instead of lemmy after almost 2 years…

          • squaresinger@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            This here is apparently the original source of the markdown specification, and there it clearly says that this is the correct behaviour: https://daringfireball.net/projects/markdown/syntax#list

            Ordered lists use numbers followed by periods:

            1. Bird
            2. McHale
            3. Parish

            It’s important to note that the actual numbers you use to mark the list have no effect on the HTML output Markdown produces. The > HTML Markdown produces from the above list is:

            <ol> <li>Bird</li> <li>McHale</li> <li>Parish</li> </ol>

            If you instead wrote the list in Markdown like this:

            1. Bird
            2. McHale
            3. Parish

            or even:

            1. Bird
            2. McHale
            3. Parish

            you’d get the exact same HTML output

              • squaresinger@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                2 days ago

                The only difference to the standard that I see is that the standard says it should be 1,2,3,4,5, while at least for me it renders as 5,6,7,8,9.

                But that’s probably because it doesn’t render as HTML and thus doesn’t rely on HTML to do the numbering.