diff --git a/public/js/extra.js b/public/js/extra.js index 13f87ac6..99233c09 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -1124,7 +1124,7 @@ md.use(markdownitContainer, 'spoiler', { // opening tag const summary = m[1] && m[1].trim() if (summary) { - return `
${md.utils.escapeHtml(summary)}\n` + return `
${md.renderInline(summary)}\n` } else { return `
\n` } diff --git a/public/js/lib/syncscroll.js b/public/js/lib/syncscroll.js index f4d247be..5bf209bc 100644 --- a/public/js/lib/syncscroll.js +++ b/public/js/lib/syncscroll.js @@ -125,7 +125,7 @@ md.use(markdownitContainer, 'spoiler', { const partClass = `class="part raw" data-startline="${startline}" data-endline="${endline}"` const summary = m[1] && m[1].trim() if (summary) { - return `
${md.utils.escapeHtml(summary)}\n` + return `
${md.renderInline(summary)}\n` } else { return `
\n` }