Repository navigation
修复网页排版中 LaTeX 公式未渲染 - #172
Merged
Edwardxlai merged 8 commits intoNov 18, 2026
Merged
Conversation
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.
关联 Issue 与改动
导入 Scaling Laws, Carefully 后,在「网页排版」中看到的公式是原始 LaTeX 源码,例如$C \approx 6ND$ 。网页快照禁用原网站脚本,阅读器又用纯文本写入原文和译文,没有调用自带的 KaTeX,因此不会渲染公式。
本 PR 使用现有 KaTeX 渲染网页文字中的行内和独立公式,保留 iframe 的脚本隔离;已导入的文章无需重新翻译。普通文字会转义,代码和链接保持字面内容。
影响范围
验证结果