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

关于网络图片的问题 #3

Closed
uuanqin opened this issue Jun 2, 2023 · 3 comments
Closed

关于网络图片的问题 #3

uuanqin opened this issue Jun 2, 2023 · 3 comments

Comments

@uuanqin
Copy link
Contributor

uuanqin commented Jun 2, 2023

该插件对网络图片似乎处理得不是很好,如![](https://typora-1301301520.file.myqcloud.com/img/image-20230511165810324.png)
Hexo渲染后显示字符串为null

是否可以关闭该插件对网络图片(或形如![img](imglink.png))的处理,因为博客里所有图片均上传图床。

我目前的做法是更改index.js文件中获取图片链接的正则表达式

目前效果不错,不知会不会产生什么bug。

Hexo版本:5.4.2
Windows:10
主题:Butterfly 4.8.1

@moelody
Copy link
Owner

moelody commented Jun 3, 2023

可能会影响嵌入视频的转换,我已对网络图片进行了正则判断,可以更新到最新版本

@moelody moelody closed this as completed Jun 3, 2023
@uuanqin
Copy link
Contributor Author

uuanqin commented Jun 7, 2023

作者你好,感谢你的回复,新版本确实解决了部分网络图片显示的问题。但是现在有新的问题出现,仍存在个别图片显示为null。

复现的例子:

![image-20230427194929460](https://typora-1301301520.file.myqcloud.com/img/image-20230427194929460.png)

![image-20230427194929460](https://typora-1301301520.file.myqcloud.com/img/image-20230427194929460.png)

![image-20230427194929460](https://typora-1301301520.file.myqcloud.com/img/image-20230427194929460.png)

![image-20230427194929460](https://typora-1301301520.file.myqcloud.com/img/image-20230427194929460.png)

渲染结果为:
image

@moelody
Copy link
Owner

moelody commented Jun 10, 2023

作者你好,感谢你的回复,新版本确实解决了部分网络图片显示的问题。但是现在有新的问题出现,仍存在个别图片显示为null。

复现的例子:

![image-20230427194929460](https://typora-1301301520.file.myqcloud.com/img/image-20230427194929460.png)

![image-20230427194929460](https://typora-1301301520.file.myqcloud.com/img/image-20230427194929460.png)

![image-20230427194929460](https://typora-1301301520.file.myqcloud.com/img/image-20230427194929460.png)

![image-20230427194929460](https://typora-1301301520.file.myqcloud.com/img/image-20230427194929460.png)

渲染结果为: image

确实有问题,我排查了下是正则的test方法出了问题,使用全局模式这个方法的index会反复横跳,查缺补漏了😅
已修正发布新版本

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

2 participants