feat: add strikethrough markdown shortcut

This commit is contained in:
thecodrr
2021-02-15 19:37:20 +05:00
parent c50411f003
commit cc490a14d8

View File

@@ -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: "©" },
];