From cbed6547e2eeaee68b8e4e68cfac2e5f8907bb56 Mon Sep 17 00:00:00 2001 From: Coma Grayce Date: Tue, 21 Jul 2020 01:19:11 +0300 Subject: [PATCH] Again, ooops. --- ui/src/components/markdown-textarea.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.44.1