Skip to content

Improve pasting formulas from Claude #14360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TCOTC opened this issue Mar 14, 2025 · 2 comments
Closed

Improve pasting formulas from Claude #14360

TCOTC opened this issue Mar 14, 2025 · 2 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Mar 14, 2025

从 Claude 复制公式粘贴到思源里没有解析为公式块

https://claude.ai/share/2d7173ce-0afa-4d72-8647-d00d21985813

Image

Image

@88250 88250 self-assigned this Mar 15, 2025
@88250 88250 changed the title 从 Claude 复制公式粘贴到思源里没有解析为公式块 Improve pasting formulas from Claude Mar 15, 2025
@88250 88250 added this to the 3.1.25 milestone Mar 15, 2025
88250 added a commit to 88250/lute that referenced this issue Mar 15, 2025
@88250 88250 closed this as completed Mar 15, 2025
@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 17, 2025

@88250
Copy link
Member

88250 commented Mar 17, 2025

行级的改进不了了,这个复制按钮复制出来以后是的 HTML 是这样的:

<p>您说得对,我刚才输出的是块级公式。以下是行内公式的示例:</p>
<p>这是一个行内公式示例 $E = mc^2$ 它嵌入在文本中。</p>
<p>行内公式通常使用单个美元符号 $ 包围,而块级公式则使用双美元符号 $$ 或其他标记。行内公式与周围文本保持在同一行,而块级公式会单独成行并居中显示。</p>

块级的能做是因为 p 中如果是 $$ 开头就强制转换公式块,但是行级的无法再在 p 中解析了,所以改进不了,这种情况我建议是直接划选复制原始的网页内容,这样可以解析。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants