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

如何增加显示引用图片名称的功能 #56

Open
YuanLiChenAi opened this issue Feb 1, 2020 · 6 comments
Open

如何增加显示引用图片名称的功能 #56

YuanLiChenAi opened this issue Feb 1, 2020 · 6 comments
Labels
enhancement New feature or request fixed Bug or error has been fixed.

Comments

@YuanLiChenAi
Copy link

能不能像下图所示,增加图片名称,或者在哪个文件中可进行编辑?
图片名称
代码

@Siricee
Copy link
Owner

Siricee commented Feb 1, 2020

Markdown能给图片添加题注么? - 知乎

暂时没有直接生成的语法,我也没找到相关插件。这个问题等我参考下其他主题,在以后的更新中可能会加上。

@Siricee Siricee closed this as completed Feb 1, 2020
@Siricee Siricee added enhancement New feature or request later This issue is temporarily not processed labels Feb 1, 2020
@YuanLiChenAi
Copy link
Author

作者大大可以参考这个主题,mellow
效果就是之前发的图片。

Siricee added a commit that referenced this issue Feb 2, 2020
@Siricee Siricee added fixed Bug or error has been fixed. and removed later This issue is temporarily not processed labels Feb 2, 2020
@Siricee
Copy link
Owner

Siricee commented Feb 2, 2020

感谢参考,功能已添加。

你可以重新下载主题文件应用这个功能。关于图片标题的使用已经添加到文档中。

Hexo 内置标签系统-图片标签(显示图片标题)

{% img [class names] /path/to/image [width] [height] '"alt text" "title text"' %}

我没有改动GFM语法,只对hexo的标签系统进行了转换,如果你需要图片标题功能,请使用以上语法引入图片

感谢您的建议和参考材料,为 Chic 增加了新的 Idea 。

@Siricee Siricee reopened this Feb 2, 2020
@AnotiaWang
Copy link

作者大大你好,能像 Butterfly 那样直接用 Markdown 的原生语法 ![title](link) ,在图片下方显示 title 呢?

Butterfly 可以直接在配置中开启,如图
NDH8kq.jpg

@zu1k
Copy link

zu1k commented Oct 3, 2020

hexo官方利用asset_img标签挺好用的
https://hexo.io/docs/tag-plugins#Embed-image

@stevenjoezhang
Copy link

hexo-renderer-marked 已添加此功能 hexojs/hexo-renderer-marked#264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed Bug or error has been fixed.
Projects
None yet
Development

No branches or pull requests

5 participants