Repository navigation
fix(katex): 覆盖rehype-katex依赖的katex版本 - #718
Merged
Merged
Conversation
👷 Deploy request for demo-firefly pending review.Visit the deploys page to approve it
|
审阅者指南配置覆盖 rehype-katex 使用的 KaTeX 版本,并移除无效的自定义 KaTeX 选项,同时在锁文件中记录依赖解析结果。
提示和命令与 Sourcery 交互
自定义使用体验访问你的控制面板,即可:
获取帮助Original review guide in EnglishReviewer's GuideConfigurationOverride the KaTeX version used by rehype-katex and remove the ineffective custom KaTeX option, with the lockfile recording the dependency resolution.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Checklist
Related Issue
#633
Changes
目前Firefly在astro.config.mjs中向rehypeKatex通过参数传入自定义版本的katex,但根据rehype-katex的文档这样做并不能奏效。本patch改为通过pnpm-workspace.yaml的overrides参数将rehype-katex依赖的katex的版本覆盖掉。(rehype-katex目前有个升级katex的pr但尚未合并)
How To Test
在本地测试了部分公式的渲染效果。
Screenshots (if applicable)
Additional Notes
Sourcery 总结
修复 rehype-katex 的 KaTeX 版本解析问题,以恢复一致的公式渲染效果。
错误修复:
构建:
Original summary in English
Summary by Sourcery
Fix KaTeX version resolution for rehype-katex to restore consistent formula rendering.
Bug Fixes:
Build: