Skip to content

Formula parsing supports $ followed by numbers when importing Markdown #8362

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
3 tasks done
zxhd863943427 opened this issue May 25, 2023 · 0 comments
Closed
3 tasks done
Assignees
Milestone

Comments

@zxhd863943427
Copy link
Contributor

zxhd863943427 commented May 25, 2023

带数学公式的markdown导入解析异常

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

导入的测试文本见下:

如果共有三个人出席聚会, 那么所有可能的生日排布方法就有  $365^3\!=\! 48~627~125$  种. “前两个人的生日在同一天, 且第三个人的生日与他们不同”的生日排布方法共有  $365 \cdot 1 \cdot 364 = 132~860$  种(第一个人的生日可以是一年中的任何一天, 第二个人的生日必须与第一个人相同, 而第三个人的生日一定与前两人不同). 类似地, “第一个人与第三个人的生日在同一天, 且第二个人的生日与他们不同”的生日排布方法共有  $132~860$  种, 并且“第二个人与第三个人的生日在同一天, 且第一个人的生日与他们不同”的生日排布方法也有  $132~860$  种. 但我们一定要非常小心, 并确保把所有可能的情况都考虑进来. 最后一种可能的情况是这三个人的生日在同一天. 这种情况所对应的生日排布方法共有  $365$  种. 因此, 这三个人中至少两个人的生日在同一天的概率为  $398~945 / 48~627~125$ , 约等于  $0.82\%$ . 这里的  $398~945$  等于  $132~860 + 132~860 + 132~860 + 365$ , 它表示“在三个人中, 至少两个人生日在同一天”的生日排布方法数. 下面给出  $n=3$  时的最后一点说明. 检验并查看答案是否合理对我们始终是有好处的. 你认为“在只有两个人出席的情况下, 两个人的生日在同一天”的概率更大, 还是“在三个人中, 至少有两个人的生日是在同一天”的概率更大?显然, 总人数越多, “至少两个人的生日在同一天”的概率就越大. 因此, 我们要算的概率一定会随着总人数的增多而不断变大,  $0.82\%$ 比 $0.27\%$  大也证实了这一点.

使用粘贴可正常导入,但使用markdown无法正常导入

图片

上方为markdown导入,下方为粘贴导入

Expected result

可以正常导入

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.8.9
- OperatingSystem: win10
- Browser (if used):

Log file

无需日志

More information

No response

@88250 88250 changed the title 带数学公式的markdown导入解析异常 Formula parsing supports $ followed by numbers when importing Markdown May 25, 2023
@88250 88250 self-assigned this May 25, 2023
@88250 88250 added this to the 2.8.10 milestone May 25, 2023
@88250 88250 closed this as completed May 25, 2023
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