From b0cf43897470a7865222a9afe466a800f862f3ec Mon Sep 17 00:00:00 2001 From: zkqiang Date: Thu, 7 Dec 2023 15:26:18 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=A7=BB=E9=99=A4=20Pandoc=20=E5=9C=A8?= =?UTF-8?q?=E8=84=9A=E6=B3=A8=E6=8F=92=E5=85=A5=E7=9A=84=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/filters/post-filter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/filters/post-filter.js b/scripts/filters/post-filter.js index 4872a3d6..43a04e38 100644 --- a/scripts/filters/post-filter.js +++ b/scripts/filters/post-filter.js @@ -49,5 +49,7 @@ hexo.extend.generator.register('post', function(locals) { hexo.extend.filter.register('after_post_render', (page) => { // 移除 hexo-renderer-pandoc 生成的 page.content = page.content.replace(/.+?<\/colgroup>/gims, ''); + // 移除 hexo-renderer-pandoc 生成的 ...
...
+ page.content = page.content.replace(/(class="footnote-text".+?)(.+?rev="footnote")/gims, '$1$2'); return page; });