Closed Karlatemp closed 1 year ago
But many md renders support it. I think vp should allow users to use it.
Also it wasn't included in Migrating from v1
V1 also DO NOT support it.
https://v1.vuepress.vuejs.org/guide/assets.html#relative-urls
So is VitePress https://vitepress.vuejs.org/guide/asset-handling.html#asset-handling
VitePress implement a custom markdown-it plugin to resolve this issue:
However, it's not an ideal solution. It made the alias fail to work.
I think it does be better to make:
![img](foo/bar.png)
be ./foo/bar.png
<img src="foo/bar.png" />
be bar.png
in package foo
Just like the absolute markdown link.
Markdown syntax can be special handled to align user's intuition when using other markdown tools, and advanced operations can be preserved when using html tags. @meteorlxy
Or in another word, I think it's do strange for people to use markdown syntax ![img](foo/bar.png)
to refrence an alia. Writing <img src"xxx" />
to do that fits people's intuition better.
Just the same as the absolute markdown link, it's quite strange to use an absolute markdown link which should be keeped as is without pending base.
Description
VuePress can't resolve images without
./
package.json
.vuepress/config.js
Reproduction
null
Used Package Manager
yarn
System Info