Skip to content

chore(sync): merge upstream - #11

Merged
Chloemlla merged 2 commits into
Chloemlla:masterfrom
zly2006:master
Aug 29, 2026
Merged

chore(sync): merge upstream#11
Chloemlla merged 2 commits into
Chloemlla:masterfrom
zly2006:master

Conversation

@Chloemlla

@Chloemlla Chloemlla commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Automated upstream sync by fork-sync.

  • Parent: zly2006 master
  • Base: Chloemlla/zhihu-plus-plus master

If this PR has conflicts, please resolve manually. Clean PRs are auto-merged.

Summary by CodeRabbit

  • 新功能

    • 超过 4096 个字符的长公式现在会自动以独立的块级公式形式显示。
  • 改进

    • 短公式继续根据原有规则以内联公式或块级公式形式呈现。

@Chloemlla
Chloemlla merged commit 48a6484 into Chloemlla:master Aug 29, 2026
4 checks passed
@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 45cd35b2-a800-4188-ae9c-6e2d83bae5e1

📥 Commits

Reviewing files that changed from the base of the PR and between 60a5ca6 and d9319ac.

📒 Files selected for processing (1)
  • shared/src/commonMain/kotlin/com/github/zly2006/zhihu/markdown/MdAst.kt

📝 Walkthrough

Walkthrough

Changes

公式节点分类

Layer / File(s) Summary
公式长度路由
shared/src/commonMain/kotlin/com/github/zly2006/zhihu/markdown/MdAst.kt
新增 OVERLONG_FORMULA_SOURCE_LIMIT = 4096。当公式来源长度超过 4096 个字符时,extractEquationNode 返回 MathBlock。其他非显示公式继续返回 InlineMath

Estimated code review effort: 1 (简单) | ~5 分钟

Suggested reviewers: zly2006, 123duo3

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

2 participants