Hi, I noticed that when a user selects ,
only the content of the emphasized text is selected so that the user can immediately start typing.
This is true for strong text as well.
However, when a user decides to create a ordered list, unordered list, or blockquote, the Markdown keyboard symbol is selected as well, which means that a user can’t immediately stop typing.
This is an annoyance to users who know Markdown, because I need to re-select only the content, and absolutely infuriating for a user who doesn’t because they might not even know what’s wrong.
Can this be updated so that only the content of whatever is being listed or quoted is selected, and not the keyboard symbol itself?
Finally, in the spirit again of helping people who don’t know Markdown. Could “strong text” be replaced with “bold text” and “emphasized text” be replaced with “italicized text”?
I like this suggestion, @codinghorror’s call on the wording here. I agree calling italics emphasised in the tooltip is somewhat confusing. Looking at Stack Exchange sites it uses “Emphasis” and “Strong” so there is precedent even in non tech sites. GitHub uses “Bold” and “Italic”.
Regarding making Italics/Bold smarter. There are quite a few edge cases… for example, when you highlight this block and hit “B” what do you expect?
- test
- text
-test
(3) test
4. test
[spoiler]
test
[/spoiler]
test [i]test
test[/i]
The ideal outcome has a LOT of magic rules, and we don’t want to have to write a full parser here.
I see (1) highlighting text, then hitting “B” as different from (2) not having text and hitting “B”. The first case does have a lot of magic rules. Perhaps until there’s rich text editing (if that’s at all a priority), include a button that links to Markdown syntax? An you know, I think the second case already works very well for “B” and should be replicated for lists and blockquotes.
Ich vermute, es gibt einen Aufruf an setSelectionRange, dessen Startwert um die Länge der Markdown-Syntax („*“ oder „1.“) + 1 für das Leerzeichen versetzt werden muss.
Ich glaube nicht, dass ich diese Schaltflächen jemals vor heute benutzt habe. Mir fiel das Problem nur auf, weil ich ein Beispiel für einen Markdown-Editor zum Kopieren brauchte. Ich frage mich, wie oft diese Schaltflächen tatsächlich benutzt werden?
Die Schaltflächen sind nützlich für Personen, die mit Markdown nicht vertraut sind. In einer Community, die von Discourse zu Discord wechselte, war eines der ersten Rückmeldungen der Mitglieder die Abwesenheit der Formatierungsleiste. Sobald ich jedoch die Formatierungstechniken gelernt hatte, zog ich es vor, die Formatierungsbefehle einzugeben, aber nicht, wenn ich ein Smartphone oder Tablet benutzte. Das liegt daran, dass die Schaltflächen in der Nähe Ihrer Finger platziert sind, wodurch sie zugänglicher sind als Sonderzeichen auf der Tastatur meines Telefons. Das ist der Grund, warum ich sie benutze. Ich habe auch kürzlich das im Eröffnungsposting erwähnte Problem gemeldet.