hexo-theme-redefine
Version:
Redefine your writing with Hexo Theme Redefine.
11 lines (9 loc) • 341 B
JavaScript
/*
'use strict';
hexo.extend.filter.register('after_post_render', function(data) {
const tableRegex = /<table(?![\s\S]*?class=["'].*?\bgutter\b.*?["'])[\s\S]*?<\/table>/g;
const wrappedTable = match => `<div class="table-container">${match}</div>`;
data.content = data.content.replace(tableRegex, wrappedTable);
return data;
});
*/