hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
38.82k stars 4.75k forks source link

relative path referencing of images #5505

Open chen-qingyu opened 4 days ago

chen-qingyu commented 4 days ago

Check List

Feature Request

Once enabled, an asset image will be automatically resolved to its corresponding post’s path. For example, “image.jpg” is located at “/2020/01/02/foo/image.jpg”, meaning it is an asset image of “/2020/01/02/foo/“ post, ![](image.jpg) will be rendered as <img src="/2020/01/02/foo/image.jpg">.

This makes it impossible to preview images in the local markdown editor like vscode.

Many plugins have been created to solve this problem, such as one I wrote: hexo-markdown-image.

Hope to native support relative path referencing of images: ![](foo/image.jpg).

Others

No response