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

代码块中的markdown图片源码被转换成图片标签 #325

Closed
gsh1209 opened this issue Nov 29, 2023 · 5 comments
Closed

代码块中的markdown图片源码被转换成图片标签 #325

gsh1209 opened this issue Nov 29, 2023 · 5 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@gsh1209
Copy link
Contributor

gsh1209 commented Nov 29, 2023

代码块中的markdown图片源码被转换成图片标签格式

  • 文本编辑器中的markdown源代码
    image

  • 生成后页面显示效果
    image

可能相关的pull/commits:

@gsh1209
Copy link
Contributor Author

gsh1209 commented Nov 29, 2023

此外,还发现如果图片文件名中包含括号,如:

![XX结构图](https://img.abc.xyz/imgs/ABC(def)结构图.jpg)

change_image 函数中的替换规则不匹配,反而不会转换成图片标签,保留原始的markdown代码

@xaoxuu xaoxuu added the bug Something isn't working label Nov 30, 2023
@xaoxuu
Copy link
Owner

xaoxuu commented Dec 13, 2023

这问题不太好处理,建议关掉自动替换功能

@gsh1209
Copy link
Contributor Author

gsh1209 commented Dec 13, 2023

好的谢谢,暂时关掉了这个功能

@xaoxuu xaoxuu added the wontfix This will not be worked on label Dec 13, 2023
Copy link

👋 Hello,
Due to the design or external issues, we will not deal with this, but we still appreciate your feedback.

👋 您好,
由于设计如此,或者是外界问题导致,我们不会对此进行处理,但仍然感谢您的反馈!

@xaoxuu
Copy link
Owner

xaoxuu commented Dec 13, 2023

因为替换的时候不知道某个图片是不是被包含在代码块中的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants