Skip to content

[codex] Render Zhihu LaTeX equations#199

Open
chaochaoweb3 wants to merge 1 commit into
wechatsync:v2from
chaochaoweb3:codex/render-zhihu-latex
Open

[codex] Render Zhihu LaTeX equations#199
chaochaoweb3 wants to merge 1 commit into
wechatsync:v2from
chaochaoweb3:codex/render-zhihu-latex

Conversation

@chaochaoweb3

Copy link
Copy Markdown

Fixes #175.

Summary

  • convert inline and block LaTeX delimiters into Zhihu equation image tags during Zhihu content transformation
  • keep equation images inline instead of wrapping them in normal image figures
  • skip LaTeX replacement inside pre/code blocks

Validation

  • npm exec --yes --package=pnpm@10.17.0 -- pnpm --filter @wechatsync/core exec vitest run src/adapters/platforms/tests/zhihu.test.ts
  • npm exec --yes --package=pnpm@10.17.0 -- pnpm --filter @wechatsync/core run typecheck
  • git diff --check

@chaochaoweb3
chaochaoweb3 marked this pull request as ready for review June 30, 2026 05:25
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.

通过 CLI 发布 markdown 文章到知乎时 LaTeX 公式未被渲染

1 participant