Skip to content

表格内公式含有 | 符号导致表格异常分割 #3168

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
HowcanoeWang opened this issue Oct 16, 2021 · 1 comment
Closed

表格内公式含有 | 符号导致表格异常分割 #3168

HowcanoeWang opened this issue Oct 16, 2021 · 1 comment
Assignees
Milestone

Comments

@HowcanoeWang
Copy link

Describe the problem

将如下的表格复制到思源里:

| aaa  | bbb  |
| ---- | ---- |
| $x_{A|B}$  | $y_{A|B}$  |

image

Expected result

image

将$$符号里包含的 | 符号忽略表格解析

Version environment

  • Version: 1.4.2
  • Operating system: Win10

PS:使用反斜杠\进行注释可以避免表格错误,但是公式渲染会出错:
image

@88250 88250 self-assigned this Oct 17, 2021
@88250 88250 changed the title 表格内公式含有|符号导致表格异常分割 表格内公式含有 | 符号导致表格异常分割 Oct 17, 2021
@88250 88250 added this to the 1.4.3 milestone Oct 17, 2021
88250 added a commit to 88250/lute that referenced this issue Oct 17, 2021

Unverified

This user has not yet uploaded their public signing key.
88250 added a commit to 88250/lute that referenced this issue Oct 17, 2021

Unverified

This user has not yet uploaded their public signing key.
@88250 88250 closed this as completed Oct 17, 2021
@88250
Copy link
Member

88250 commented Sep 21, 2023

现在的版本 v2.10.7 中确认这个问题不应该解决,

| aaa  | bbb  |
| ---- | ---- |
| $x_{A|B}$  | $y_{A|B}$  |

其中公式中的 | 属于表格块级,块级优先级高于行级,所以会被表格解析优先使用。

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