From: Coma Grayce Date: Mon, 20 Jul 2020 22:19:11 +0000 (+0300) Subject: Again, ooops. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/%22https:/hacktivis.me/%7Bthis.imageSrc.unwrap%28%29%7D?a=commitdiff_plain;h=cbed6547e2eeaee68b8e4e68cfac2e5f8907bb56;p=lemmy.git Again, ooops. --- diff --git a/ui/src/components/markdown-textarea.tsx b/ui/src/components/markdown-textarea.tsx index 04838b2c..cd2dda11 100644 --- a/ui/src/components/markdown-textarea.tsx +++ b/ui/src/components/markdown-textarea.tsx @@ -471,12 +471,12 @@ export class MarkdownTextArea extends Component< handleInsertSubscript(i: MarkdownTextArea, event: any) { event.preventDefault(); - i.simpleInsert('~'); + i.simpleSurround('~'); } handleInsertSuperscript(i: MarkdownTextArea, event: any) { event.preventDefault(); - i.simpleInsert('^'); + i.simpleSurround('^'); } simpleInsert(chars: string) {