hexo-asset-img icon indicating copy to clipboard operation
hexo-asset-img copied to clipboard

![1](test/1.png) 匹配错误 导致 图片宽度为1

Open yiyungent opened this issue 3 years ago • 3 comments

![1](test/1.png)
<img src="/test/img-1.png" class="" width="1">

匹配错误

猜测:
![这里纯数字时错误](xxx)

yiyungent avatar Jan 05 '22 01:01 yiyungent

+1,我也发现这个bug了,纯数字会被转换成class width

ldefault111 avatar Sep 14 '22 08:09 ldefault111

研究了一下发现完全是hexo的问题,请看 https://hexo.io/docs/tag-plugins.html#Include-Assets ,如果你手写 {% asset_img /test/img-1.png 1 %} 也有这个问题,并且对这个1加不加引号,加单引号还是双引号,都没有影响

我的渲染器是 hexo-renderer-pandoc

额发现居然是作者自己提的bug哈哈哈,有没有发现其实这个和插件无关

ytf4425 avatar Apr 05 '23 09:04 ytf4425

研究了一下发现完全是hexo的问题,请看 https://hexo.io/docs/tag-plugins.html#Include-Assets ,如果你手写 {% asset_img /test/img-1.png 1 %} 也有这个问题,并且对这个1加不加引号,加单引号还是双引号,都没有影响

我的渲染器是 hexo-renderer-pandoc

额发现居然是作者自己提的bug哈哈哈,有没有发现其实这个和插件无关

感谢反馈!!!原来是这个问题!已标记 issue

yiyungent avatar Apr 08 '23 12:04 yiyungent