hexo
Version:
A fast, simple & powerful blog framework, powered by Node.js.
14 lines (12 loc) • 348 B
JavaScript
/**
* Pullquote tag
*
* Syntax:
* {% pullquote [class] %}
* Quote string
* {% endpullquote %}
*/
module.exports = function(args, content){
var className = args.length ? ' ' + args.join(' ') : '';
return '<blockquote class="pullquote' + className + '">' + hexo.render.renderSync({text: content, engine: 'markdown'}) + '</blockquote>';
};