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

替换图片时注释原有图片链接 #291

Open
Higurashi-kagome opened this issue May 8, 2024 · 1 comment
Open

替换图片时注释原有图片链接 #291

Higurashi-kagome opened this issue May 8, 2024 · 1 comment

Comments

@Higurashi-kagome
Copy link
Contributor

UI 上的哪个部分与此新功能有关?

其他

新功能描述

上传博文时,提取完图片后扩展会替换掉原有图片部分为新图片链接。

可考虑注释掉原有图片链接,而不是将其替换。

[可选]建议的解决方案

比如,假设有如下 Markdown 文本:

示例如下:

![img](res/img/1.jpg)

上传博文提取完图片后,将变为:

示例如下:

![img](.../cnblog/../1.jpg)

<!-- ![img](res/img/1.jpg) -->
@Higurashi-kagome
Copy link
Contributor Author

另发现扩展会将注释中的图片上传并替换,理想情况下应该不处理注释中的图片。比如:

<!-- ![img](res/img/1.jpg) -->

在上传后应该保持不变。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant