From 319b0a543c0e61d4201ba9828568e5cb4ef3b9b9 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 21 May 2024 16:58:42 +0300 Subject: [PATCH] Enable markdown strikethough --- public/script.js | 2 ++ public/scripts/templates/formatting.html | 1 + 2 files changed, 3 insertions(+) diff --git a/public/script.js b/public/script.js index a8d69984f..5f810845d 100644 --- a/public/script.js +++ b/public/script.js @@ -683,6 +683,7 @@ export function reloadMarkdownProcessor(render_formulas = false) { tables: true, parseImgDimensions: true, simpleLineBreaks: true, + strikethrough: true, extensions: [ showdownKatex( { @@ -702,6 +703,7 @@ export function reloadMarkdownProcessor(render_formulas = false) { tables: true, underline: true, simpleLineBreaks: true, + strikethrough: true, extensions: [markdownUnderscoreExt()], }); } diff --git a/public/scripts/templates/formatting.html b/public/scripts/templates/formatting.html index 110ef4cbd..423e8b199 100644 --- a/public/scripts/templates/formatting.html +++ b/public/scripts/templates/formatting.html @@ -4,6 +4,7 @@ Text formatting commands:
  • **text** - displays as bold
  • ***text*** - displays as bold italics
  • __text__ - displays as an underline
  • +
  • ~~text~~ - displays as a strikethough
  • [text](url) - displays as a hyperlink
  • ![text](url) - displays as an image
  • ```text``` - displays as a code block (new lines allowed between the backticks)