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('')