4 ms·
> 3. Many then implement it with or without edge cases > it’s fantastic for chat applications Slack is the absolute worst at it; I am unable to at all figure
by deathanatos 2y ago
> 3. Many then implement it with or without edge cases
> it’s fantastic for chat applications
Slack is the absolute worst at it; I am unable to at all figure out what its "parser" (which feels like cobbled together regexes … but even then … not?) is doing.
[link text](URL)
is sometimes a link. But sometimes not! Sometimes Slack mutates your message, and then renders the mutated version — and this is visible if you subsequently edit your message, as what is now there != what you type. When it works it is nice, but when Slack decides it doesn't like that message, in particular, it can just be a pain to get it to do what you've typed.
Worse to me is that Slack considers "we mutated the input you typed, and then proceeded to misrender it" as "Won't Fix/Working As Intended". (I reported it a while ago, that was the resolution.)
- m-p-3 2y agoGoogle Chat is also somewhat terrible at it. Want to italicize some text? Easy right, just do it like *this*.. nope that will bake it BOLD, gotta write it like _this_ for italics. https://support.google.com/chat/answer/7649118 https://support.google.com/chat/answer/7649118 The only thing I like is that you can colorize text, but there's no syntax for it, you gotta highlight it then choose a color in the formatting toolbar. It's annoying to no end when you memorized the syntax and Google decides to not even follow it.
- deathanatos 2y agoWay back in the day when I was on IRC, I usually read them as, *bold* /italics/ _underline_ … which would have made sense, if you stop to think about the characters. (But of course humans are wibbly-wobbly in what they'll choose, so context is context.) Alas, bold is now different in everything, it seems, and I can never remember which is which, aside from Discord which gives visual feedback.
- account42 2y agoAnd even HTML was not safe because <b> and <i> were too easy so now we have <strong> and <em> because somehow those are more meaningful.
- collinmanderson 2y agoThe worst part of the <i> to <em> migration is now <em> often gets used for book titles, which is completely wrong. Book titles aren’t emphasized, they’re italicized. If someone hits control+I, or an italics button, it should use <i> tags, not <em>.
- pitaj 2y agoI think one of Markdown's biggest mistake was making `*` and `_` interchangeable. It should have been `*bold*` and `_italics_` from the beginning.
- m-p-3 2y agoI agree with you on that. What about * for bold, / for italic and _ for underline?
- ysavir 2y ago/ is too commonly used, such as when making a list of replacements/alternatives/synonyms. It works fine when it's just the text as written, but if it was parsing and turned that list to replacementsalternativessynonyms, it would only be getting in the way.
- jgruber 2y agoI have no regrets on this one. I thought people would use both, and people do use both.
- bmacho 2y agoHN uses *italics*. I, myself, prefer /italics/, _underline_ and _bold_ in text, if there is no formatting. I feel that these 2 are the least arbitrary, they almost work without agreeing on their meaning beforehand.
- fragmede 2y agofwiw, I find it's easiest to copy a url to my clipboard, go back to slack, type the words, then select them, and then hit ctrl-v, which doesn't get rid of the text but instead makes it a link with the selected text as the link text and the pasted text as the url.
- account42 2y agoThat sounds horrible. You should never mess with the semantics of standard shortcuts like that. Please let paste mean paste and not "smart" paste.
- literallyroy 2y agoInterestingly it annoys me when other tooling *doesn’t* do this
- sethaurus 2y agoThis is very common feature of rich-text (and markdown) editors. GitHub comment boxes do the same thing even though they are not WYSIWYG. Confluence and Notion do too.
- keybored 2y agoSlack is pretty bad yeah. It might work great if you write a whole message perfectly without typos. Then immediately when you have to go back and edit things like code snippets it gets confused: often you get raw backticks in the rendered message since it’s so confused. And for technical stuff I very often have to edit my message. And yes: don’t even get me started on having to think about whether I can write a link or whatever in MD or if I have to use the bells and whistles buttons in Slack. Considering that Slack is used by both technical and non-technical users they should, well, really have a way to toggle between rendering the text immediately while typing and having it in the raw form while typing. Because editing it raw would be much less confusing for me.