From 7067d8e13d0f892ce20ac18d78fbd6a224858f86 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 7 Dec 2014 13:43:04 +0100 Subject: [PATCH] Added support for [small]text[/small] --- public_html/js/Util/Misc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/js/Util/Misc.js b/public_html/js/Util/Misc.js index 11ea0429..7ff017e9 100644 --- a/public_html/js/Util/Misc.js +++ b/public_html/js/Util/Misc.js @@ -210,6 +210,8 @@ App.Util.Misc = function(_, jQuery, marked, promise) { text = text.replace(/\[search\]((?:[^\[]|\[(?!\/?search\]))+)\[\/search\]/ig, '$1'); //spoilers text = text.replace(/\[spoiler\]((?:[^\[]|\[(?!\/?spoiler\]))+)\[\/spoiler\]/ig, '$1'); + //[small] + text = text.replace(/\[small\]((?:[^\[]|\[(?!\/?small\]))+)\[\/small\]/ig, '$1'); //strike-through text = text.replace(/(^|[^\\])(~~|~)([^~]+)\2/g, '$1$3'); text = text.replace(/\\~/g, '~');