Closed coolzjy closed 1 year ago
Support render inline (Single line rendering, without paragraph wrap) which is useful when rendering text inside plugins and tags.
For instance, I would be able to render caption and content without p tag with inline: true option:
inline: true
hexo.extend.tag.register( "figure", function ([caption], content) { return `<figure>${hexo.render.renderSync( { text: content, engine: "markdown", }, { inline: true, } )}<figcaption>${hexo.render.renderSync( { text: caption, engine: "markdown", }, { inline: true, } )}</figcaption></figure>`; }, { ends: true } );
Support render inline (Single line rendering, without paragraph wrap) which is useful when rendering text inside plugins and tags.
For instance, I would be able to render caption and content without p tag with
inline: true
option: