So breaking accessibility for the heck of it? How forward-thinking.
Comment on (☞゚ヮ゚)☞
muhyb@programming.dev 1 day agoWell, 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 1 day ago
muhyb@programming.dev 1 day ago
How is it breaking accessibility?
lmmarsano@lemmynsfw.com 1 day 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 22 hours 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.
user224@lemmy.sdf.org 22 hours ago
By the way, Markdown also takes escape
\
, which is why sometimes the shrugging emoticon is missing left arm.- So this
- also works with space
So you don’t even necessarily have to leave out the space.
muhyb@programming.dev 22 hours ago
Apparently there is already a separate symbol for speech dash, which is —. However its keyboard shortcut is obscure and I couldn’t remember it later, but Markdown already covered this it seems. Writing
—
renders as —, which I’ll do from now on, if I don’t forget about it next time.