Skip to content

数学公式导出 & 转义问题 #3234

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
2016201256 opened this issue Oct 22, 2021 · 3 comments
Closed

数学公式导出 & 转义问题 #3234

2016201256 opened this issue Oct 22, 2021 · 3 comments
Assignees
Labels
Milestone

Comments

@2016201256
Copy link

描述问题 Describe the problem

如题.
2021-10-23_001536
上图是输入的数学公式块, 使用了 \begin{aligned} \end{aligned} , 在思源内编辑和渲染都是正常的.
2021-10-23_001750
上图是将这个公式块复制粘贴到别处或者导出为markdown的结果, 可以看到在标明对其位置的 & 符号之后出现了 amp; 的乱码, 影响了公式的正常渲染.

期待的结果 Expected result

截屏或者录屏演示 Screenshot or screen recording presentation

版本环境 Version environment

  • Version: 1.4.5
  • Operating system:
  • Browser (if used):

日志文件 Log File

更多信息 More information

@88250
Copy link
Member

88250 commented Oct 23, 2021

麻烦帖一下公式原文文本,谢谢。

@2016201256
Copy link
Author

麻烦帖一下公式原文文本,谢谢。

\begin{aligned}
MRS_{12}&=\frac{d X_{2}}{d X_{1}}=-\frac{\partial u\left(X_{1}, X_{2}\right) / \partial X_{1}}{\partial u\left(X_{1}, X_{2}\right) / \partial X_{2}}\\
&=-\frac{6/ X_{1}}{4 / X_{2}}\\
&=-\frac{6}{4} \frac{X_{2}}{X_{1}}\\
&=-\frac{6}{4} \times \frac{1}{2}\\
&=-0.75
\end{aligned}

@88250 88250 self-assigned this Oct 23, 2021
@88250 88250 changed the title 数学公式块中使用对齐环境时, 导出或复制出现错码 数学公式导出 & 转义问题 Oct 23, 2021
@88250 88250 added the Bug label Oct 23, 2021
@88250 88250 added this to the 1.4.6 milestone Oct 23, 2021
@88250
Copy link
Member

88250 commented Oct 23, 2021

谢谢,下个版本修复。

88250 added a commit to 88250/protyle that referenced this issue Oct 23, 2021
@88250 88250 closed this as completed Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants