From 25163ed1c546f3785b420534678dfbe6d5203af5 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Sat, 21 Nov 2015 02:35:40 +0500 Subject: [PATCH] fix missed parameters in htmlFormatMsg() --- js/twister_formatpost.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index a4f1e26..a103b96 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -630,7 +630,7 @@ function htmlFormatMsg(msg, opt) { msg = {str: escapeHtmlEntities(msg), htmlEntities: []}; - msg = markout(msg, '`', 'samp'); // tag is kind of monospace, here sequence of chars inside it will be escaped from markup + msg = markout(msg, markoutOpt, '`', 'samp'); // tag is kind of monospace, here sequence of chars inside it will be escaped from markup // handling links for (i = 0; i < msg.str.length - 7; i++) { @@ -669,10 +669,10 @@ function htmlFormatMsg(msg, opt) { applyHtml( // we're trying markup inside [] of []() markout(markout(markout(markout( {str: linkName, htmlEntities: msg.htmlEntities}, - '*', 'b'), // bold - '~', 'i'), // italic - '_', 'u'), // underlined - '-', 's') // striketrough + markoutOpt, '*', 'b'), // bold + markoutOpt, '~', 'i'), // italic + markoutOpt, '_', 'u'), // underlined + markoutOpt, '-', 's') // striketrough ) .replace(/&(?!lt;|gt;)/g, '&') ) @@ -683,10 +683,10 @@ function htmlFormatMsg(msg, opt) { applyHtml( // we're trying to clear markup inside [] of []() markout(markout(markout(markout( {str: linkName, htmlEntities: msg.htmlEntities}, - '*', 'b'), // bold - '~', 'i'), // italic - '_', 'u'), // underlined - '-', 's') // striketrough + markoutOpt, '*', 'b'), // bold + markoutOpt, '~', 'i'), // italic + markoutOpt, '_', 'u'), // underlined + markoutOpt, '-', 's') // striketrough ) .replace(/&(?!lt;|gt;)/g, '&') );