From d1d4383450dfb1c843097ea1124c7adba790d74b Mon Sep 17 00:00:00 2001 From: "Chen, Chien-ting" Date: Thu, 16 May 2019 21:45:15 +0800 Subject: [PATCH] Update gloss.js --- gloss.js | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) 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;