diff --git a/gloss.js b/gloss.js index 510c1d2..b4be607 100644 --- a/gloss.js +++ b/gloss.js @@ -38,8 +38,11 @@ hexo.extend.filter.register('before_post_render', (data) => { return data; }); + + hexo.extend.tag.register('gloss', function(args, content){ + var content2dArray = []; var contentSplitted = content.split("\n"); var content2dArrayMaxLen = 0; @@ -60,10 +63,10 @@ for (var i=0; i" + content2dArray[i][j] + ""); } - line_result += "" + line_result += ""; render_result += line_result; } - return "
" + render_result + "
"}, +return "
" + render_result + "
" }, {ends: true});