]> Untitled Git - lemmy.git/commitdiff
Again, ooops.
authorComa Grayce <commagray@sunbutt.faith>
Mon, 20 Jul 2020 22:19:11 +0000 (01:19 +0300)
committerComa Grayce <commagray@sunbutt.faith>
Mon, 20 Jul 2020 22:19:11 +0000 (01:19 +0300)
ui/src/components/markdown-textarea.tsx

index 04838b2c8cee838f57712d22b483ab672e200f7a..cd2dda11053ccbe3f1572adc25f512e81f9ca89b 100644 (file)
@@ -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) {