Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: add strikethrough markdown shortcut

thecodrrcc490a14d85b
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index 31865d8de..4f818b6a9 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -33,6 +33,7 @@ const markdownPatterns = [
{ start: "*", end: "*", format: "italic" },
{ start: "_", end: "_", format: "italic" },
{ start: "**", end: "**", format: "bold" },
+ { start: "~~", end: "~~", format: "strikethrough" },
{ start: "`", end: "`", format: "code" },
{ start: "#", format: "h1" },
{ start: "##", format: "h2" },
@@ -75,7 +76,6 @@ const markdownPatterns = [
},
{ start: "---", replacement: "<hr/>" },
{ start: "--", replacement: "—" },
- { start: "-", replacement: "—" },
{ start: "(c)", replacement: "©" },
];