fi3ework / hexo-theme-archer

🎯 A smart and modern theme for Hexo.
https://fi3ework.github.io/hexo-theme-archer
MIT License
1.49k stars 274 forks source link

表格的表头渲染到文章顶部,显示异常 #351

Closed lulu010722 closed 1 year ago

lulu010722 commented 1 year ago

我启用了一个pandoc的渲染器 此时我发现,在本地typora编写表格,在hexo上显示的大概是这样:

image

尝试按照archer的推荐配置pandoc并且编写表格可以复现该问题。 原博客网址:https://lulu010722.cn/2022/10/15/%E6%B5%8B%E8%AF%95/

md原文:

# 表格测试

| 1 | 2 | 3 | | ---- | ---- | ---- | | 甲 | 乙 | 丙 |

LolipopJ commented 1 year ago

image

排查出来问题的原因在于表格的表头使用到了重复的 header 样式类,而这个样式类原计划仅使用于博客的顶部 Header。这个问题源于未能使用样式隔离,已经修复,可以拉取 master 分支最新代码测试。