• lmmarsano@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    7
    ·
    edit-2
    8 months ago
    how to write lists
    - Why there are pyramids in Egypt?
    - Because Brits couldn’t moved them to British Museum.
    

    renders to

    • Why there are pyramids in Egypt?
    • Because Brits couldn’t moved them to British Museum.

    Markdown guide is in the toolbar (?⃝) alongside a button for lists.

    Edit: Disregard. They were trying to do quotation dashes.

    • muhyb@programming.dev
      link
      fedilink
      English
      arrow-up
      13
      ·
      8 months ago

      Well, that’s the reason why I didn’t write it like that. I wanted it to look like a dash, just like in novels.

          • lmmarsano@lemmynsfw.com
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            17
            ·
            8 months ago

            Good question: for basic accessibility, structure should be conveyed, which adds

            when technologies support programmatic relationships, it is strongly encouraged that information and relationships be programmatically determined

            The web supports programmatic relationships through correct markup, so the technique using semantic elements to mark up structure applies, specifically by using ol, ul and dl for lists or groups of links or the markdown equivalent.

            If you want to experience this yourself, then put on a blindfold, use a screenreader & compare your “list” to mine.

            • muhyb@programming.dev
              link
              fedilink
              English
              arrow-up
              5
              ·
              8 months ago

              I don’t have a screen reader installed so I cannot try it but I can guess how it can screw with it. However I agree with Monkey With A Shell here. It’s not realistic for all users to follow semantics, this can only be solved with a better software.

              While I use markdown daily, apparently there are still things I don’t know about it. Well, I mostly learn them when I need them but still. So, I could use (speech dash) instead of -, which I assume wouldn’t cause a problem with a screen reader. There is no way for me to remember its shortcut on the keyboard, but it seems Markdown already covered this with --- which ends up rendered as .

              Thanks for making me noticing about it, learned something new today.

              • lmmarsano@lemmynsfw.com
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                8
                ·
                edit-2
                8 months ago

                It’s not realistic for all users to follow semantics

                Not realistic for users to write lists the normal way that doesn’t look wrong? I don’t know guys

                -first
                
                -second
                
                -third
                

                looks obviously bad whereas

                - first
                - second
                - third
                

                looks right. Then you see the rendered result in preview. You also had a button in the toolbar to create a list.

                I don’t think this is asking much.

                If you weren’t trying to write a list, though, then I don’t know what you were doing & I doubt a chat bot will either: could you link to an example of what you were trying to do? For all you know, I’m a chat bot not figuring out your intent. No technology is about to fix PEBKAC.

                I think the bottom line is if you write lists normally, then everything else including accessibility will turn out right without you needing to understand the intricacies.

                • muhyb@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  6
                  ·
                  8 months ago

                  I definitely wasn’t trying to write a list, it was a riddle or a conversation. What I was trying to do is this:

                  Though, it seems speech dash is not a thing in English. So I understand the confusion.

                  • Canadian_Cabinet @lemmy.ca
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    8 months ago

                    Yeah its not a thing in English. In Spanish it is as well and learning to read novels in English was a bit confusing at first. I believe the official name is en dash or em dash I forget which