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)) {