From 47c631ad4f0585134176f7508dab5a9dd6a17ef2 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Tue, 7 Apr 2026 00:10:38 -0400 Subject: [PATCH] Add strikethrough support to markdown parser (~~text~~) Co-Authored-By: Claude Sonnet 4.6 --- assets/js/markdown.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/markdown.js b/assets/js/markdown.js index 65c1768..44e0a4d 100644 --- a/assets/js/markdown.js +++ b/assets/js/markdown.js @@ -41,6 +41,9 @@ function parseMarkdown(markdown) { html = html.replace(/\*(.+?)\*/g, '$1'); html = html.replace(/_(.+?)_/g, '$1'); + // Strikethrough (~~text~~) + html = html.replace(/~~(.+?)~~/g, '$1'); + // Images ![alt](url) - must come before link handler html = html.replace(/!\[([^\]]*)\]\(([^)]+)\)/g, function(match, alt, url) { if (/^https?:/i.test(url)) {