Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] multi renderer support, resolve #476 #481

Merged
merged 3 commits into from
May 31, 2024

Conversation

L33Z22L11
Copy link
Contributor

@L33Z22L11 L33Z22L11 commented May 31, 2024

hexo-renderer-markedhexo-renderer-markdown-it-plus 为标题添加的锚点按钮的类名不一致,主题只对应 Hexo 默认渲染器做了适配。

通过更改 CSS 选择器,可以使多个渲染器生成的页面具有相同的标题样式,解决 #476 的问题。

同时,移除了 {% quot %} 标签中未使用的锚点按钮,进一步精简了代码,便于后期维护。

Copy link

stackblitz bot commented May 31, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@KazariEX
Copy link
Contributor

KazariEX commented May 31, 2024

hexo-renderer-markdown-it-plus 默认开启 katex,此时 plugins 字段下的该选项仅用于引入 CSS,似乎有些偏离了「扩展插件」的原意,可能需要重新考虑代码结构

@xaoxuu xaoxuu merged commit 5f93898 into xaoxuu:main May 31, 2024
@L33Z22L11 L33Z22L11 deleted the multi-renderer-support branch May 31, 2024 14:58
lliei0x pushed a commit to lliei0x-x/hexo-theme-stellar that referenced this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants