Skip to content

fix: 绘制公式前清除原公式,避免字符重叠绘制问题#1315

Open
u1in wants to merge 1 commit intoHufe921:mainfrom
u1in:fix-latex-render
Open

fix: 绘制公式前清除原公式,避免字符重叠绘制问题#1315
u1in wants to merge 1 commit intoHufe921:mainfrom
u1in:fix-latex-render

Conversation

@u1in
Copy link
Copy Markdown
Contributor

@u1in u1in commented Nov 19, 2025

发现使用连页模式下,绘制公式前没有清除原公式内容导致公式叠影。

复现代码:https://codesandbox.io/p/sandbox/vigilant-bouman-8x483c

image

可以观察到旧的公式会被重叠绘制

发现是使用_immediateRender渲染公式时候就会出现这个问题

历史相关issue:
#1284

Prevent visual artifacts by clearing the target area before rendering LaTeX particles, both for cached and newly loaded images.
@Hufe921 Hufe921 force-pushed the main branch 2 times, most recently from 3bbe44b to 2496c30 Compare February 23, 2026 03:03
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.

1 participant