hexo-tag-plugins
Version:
A number of tag plugins for theme-butterfly
16 lines (12 loc) • 390 B
JavaScript
// 'use strict'
//
// function poem (args, content) {
// return `<div class="tip"><b>${content}<b></div>`
// }
//
// hexo.extend.tag.register('tip', tip, { ends: true })
function tip (args, content) {
return `<div class="tip ${args.join(' ')}">${hexo.render.renderSync({ text: content, engine: 'markdown' })}</div>`
}
hexo.extend.tag.register('tip',tip, { ends: true })