diff --git a/gloss.js b/gloss.js index b4be607..5e7996f 100644 --- a/gloss.js +++ b/gloss.js @@ -11,28 +11,34 @@ Gua2 siong1-sin3 Li2. */ hexo.extend.filter.register('before_post_render', (data) => { - var css_content = `.css-table1{ - display: table; - border: none; } - + var css_content = ` + .css-table1{ + display: table; + border: none;} + .css-tr1{ - display:table-row; + display:table-row; } - + .css-td1{ - display:table-cell;}` + display: table-cell; + padding-right: 1ex; + }`; + + var css_rendered = css_content.replace(/([ ]|\t|\n)+/g, " "); var link_js = `` + `; data.content += link_js; return data;