mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 23:24:26 +00:00
fix missed parameters in htmlFormatMsg()
This commit is contained in:
parent
07d8f171ee
commit
25163ed1c5
@ -630,7 +630,7 @@ function htmlFormatMsg(msg, opt) {
|
||||
|
||||
msg = {str: escapeHtmlEntities(msg), htmlEntities: []};
|
||||
|
||||
msg = markout(msg, '`', 'samp'); // <samp> tag is kind of monospace, here sequence of chars inside it will be escaped from markup
|
||||
msg = markout(msg, markoutOpt, '`', 'samp'); // <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, '&')
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user