mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-29 08:17:47 +00:00
Use * for italics as it doesn't break when used mid-word (#12523)
* Use `*` for italics as it doesn't break when used mid-word Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
77a724526e
commit
667a7548a7
@@ -48,7 +48,7 @@ export function formatRange(range: Range, action: Formatting): void {
|
||||
toggleInlineFormat(range, "**");
|
||||
break;
|
||||
case Formatting.Italics:
|
||||
toggleInlineFormat(range, "_");
|
||||
toggleInlineFormat(range, "*");
|
||||
break;
|
||||
case Formatting.Strikethrough:
|
||||
toggleInlineFormat(range, "<del>", "</del>");
|
||||
|
||||
Reference in New Issue
Block a user