Skip to content
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

[BUG] 当文字下方有一个-时,markdown渲染出现问题 #470

Open
ppolariss opened this issue Dec 26, 2024 · 2 comments
Open

[BUG] 当文字下方有一个-时,markdown渲染出现问题 #470

ppolariss opened this issue Dec 26, 2024 · 2 comments
Assignees
Labels
bug Something isn't working waiting for upstream we are waiting a fix from upstream.

Comments

@ppolariss
Copy link
Contributor

复现步骤
复现该 Bug 的步骤:

  1. 到 任意编辑 页面
  2. 输入任意文字
  3. 换行,输入一个-
  4. 出现错误

截图
image

系统信息

  • 设备型号:xiaomi13
  • 系统版本:android14
  • 旦挞校园助手版本(见「设置-关于本应用」):1.4.5
@ppolariss ppolariss added the bug Something isn't working label Dec 26, 2024
@w568w w568w added the Complexity: Medium Requires identifying the problem's source and/or refactoring, but limited to one area label Dec 26, 2024
@w568w w568w self-assigned this Dec 31, 2024
@w568w
Copy link
Member

w568w commented Dec 31, 2024

我稍微深挖了一下,可以确定原因是 markdown 包中的 UnorderedListSyntax。关闭该扩展样式后,渲染就恢复正常。

我们开启此扩展样式的原因是 MarkdownWidget 默认启用 ExtensionSet.gitHubFlavored 扩展集,其中包含了该样式。

主要问题在于后添加的 UnorderedListSyntax(准确地说,UnorderedListWithCheckboxSyntax)在 HeaderSyntax 之前执行。

@w568w
Copy link
Member

w568w commented Dec 31, 2024

Upstream issue: dart-lang/tools#1953.

@w568w w568w added waiting for upstream we are waiting a fix from upstream. and removed Complexity: Medium Requires identifying the problem's source and/or refactoring, but limited to one area labels Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for upstream we are waiting a fix from upstream.
Projects
None yet
Development

No branches or pull requests

2 participants