From 98d13e9febcba488d9609468dad96e0231f5ffe3 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 10 Aug 2017 01:11:18 +0000 Subject: [PATCH] We cant forget the secret way to make italics with underscores --- webapp/titanembeds/static/js/embed.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 23c3c0b..37c5331 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -608,6 +608,7 @@ text = text.replace(/\*\*(.*?)\*\*/g, "$1"); text = text.replace(/\*(.*?)\*/g, "$1"); text = text.replace(/__(.*?)__/g, "$1"); + text = text.replace(/_(.*?)_/g, "$1"); text = text.replace(/~~(.*?)~~/g, "$1"); text = text.replace(/\`\`\`([^]+)\`\`\`/g, "$1"); text = text.replace(/\`(.*?)\`/g, "$1");