From 85eae414cba5e8eb6976380d6363ad1a33d68703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=97=A5=E8=AF=AD?= Date: Mon, 21 Oct 2024 17:42:00 +0800 Subject: [PATCH] [fix] mathjax render (#532) --- scripts/tags/lib/box.js | 2 +- scripts/tags/lib/folders.js | 2 +- scripts/tags/lib/folding.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/tags/lib/box.js b/scripts/tags/lib/box.js index 4b8e9e6..02638c7 100644 --- a/scripts/tags/lib/box.js +++ b/scripts/tags/lib/box.js @@ -22,7 +22,7 @@ module.exports = ctx => function(args, content) { el += '>' // title if (title && title.length > 0) { - el += '
' + title + '
' + el += '
' + ctx.render.renderSync({text: title, engine: 'markdown'}) + '
' } // content el += '
' diff --git a/scripts/tags/lib/folders.js b/scripts/tags/lib/folders.js index 58b7e6a..13b31e0 100644 --- a/scripts/tags/lib/folders.js +++ b/scripts/tags/lib/folders.js @@ -39,7 +39,7 @@ module.exports = ctx => function(args, content) { nodes.forEach((node, i) => { el += '
' // summary - el += '' + (node.header || '') + '' + el += '' + ctx.render.renderSync({text: (node.header || ''), engine: 'markdown'}) + '' // content el += '
' el += ctx.render.renderSync({text: (node.body || ''), engine: 'markdown'}).split('\n').join('') diff --git a/scripts/tags/lib/folding.js b/scripts/tags/lib/folding.js index 4b843e4..25463c0 100644 --- a/scripts/tags/lib/folding.js +++ b/scripts/tags/lib/folding.js @@ -20,7 +20,7 @@ module.exports = ctx => function(args, content) { } el += '>' // summary - el += '' + (args.title || '') + '' + el += '' + ctx.render.renderSync({text: (args.title || ''), engine: 'markdown'}) + '' // content el += '
' el += ctx.render.renderSync({text: content, engine: 'markdown'}).split('\n').join('')