Skip to content

Import markdown file,math formula can not display correctly. #11476

Closed
@luo-chuan

Description

@luo-chuan

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

现在“导入 markdown”、“简悦剪藏”,里面的公式都不能正常显示。

之前是没问题的,现在不行了。当前 siyuan 版本是 3.0.14,测试已排除插件和代码片段。

siyuan 回退到 3.0.7,用“简悦剪藏”、“导入 markdown”,公式都能正常显示。我猜这是因为简悦插件的原理实际上是先转为 markdown 再导入思源?但最新版本的 siyuan 导入 markdown 公式会不正常。

测试网页(以前是正常的): https://zhuanlan.zhihu.com/p/679689692

3.0.7导入markdown:
图片

3.0.14导入markdown:
图片

Expected result

none

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.0.14
- Operating System: win10 or android 14
- Browser (if used):

Log file

none

More information

关联: https://ld246.com/article/1716121840461/comment/1716188048829?r=openAI#comments

Activity

TCOTC

TCOTC commented on May 20, 2024

@TCOTC
Contributor

打开这个开关再导入 Markdown 试试看行不行:

image

luo-chuan

luo-chuan commented on May 20, 2024

@luo-chuan
Author

打开这个开关再导入 Markdown 试试看行不行:

image

谢谢,打开这个开关后,导入markdown和简悦剪藏都正常了。话说为什么要默认关闭这个开关呢?给用户造成困惑。建议这个开关默认打开。

TCOTC

TCOTC commented on May 20, 2024

@TCOTC
Contributor

话说为什么要默认关闭这个开关呢?给用户造成困惑。建议这个开关默认打开。

因为小白一般不用公式,但输入 $ 的时候会变成行级公式,会造成困扰

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @luo-chuan@TCOTC

        Issue actions

          Import markdown file,math formula can not display correctly. · Issue #11476 · siyuan-note/siyuan