From: Coma Grayce Date: Mon, 20 Jul 2020 22:19:11 +0000 (+0300) Subject: Again, ooops. X-Git-Url: http://these/git/ui/assets/static/%7Bvideo_url%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) {