vuepress-theme-hope / vuepress-theme-hope

A vuepress theme with tons of features✨
https://theme-hope.vuejs.press
MIT License
2.09k stars 735 forks source link

[Bug] 相对路径图片无法通过 markdown-it 进行重渲染,已通过在线驱动提供最小复现项目 #4399

Closed LincZero closed 1 month ago

LincZero commented 1 month ago

Checklist

Package name

vuepress-theme-hope

Which operating system are you using?

Describe the bug

3fa8f1a83ab247ad4a4caa8e8a1913c9

在线:https://stackblitz.com/edit/vuepress-theme-hope-ly6uos?file=docs%2FREADME.md,docs%2F.vuepress%2Fconfig.ts

(该在线驱动基于https://theme-hope.vuejs.press/zh/demo/,只添加了logo.png文件,只修改了config.ts和README.md文件)

Additional context

No response

LincZero commented 1 month ago

补充:

LincZero commented 1 month ago

找到了,上面的最小案例其实给得不准确,最小案例错是因为我傻了调了两次oldRender。

应该要么自己处理,要么换成md.redner。自己处理的话应从env里获取 .filePathRelatie,然后再用来修改相对路径图片的url就可以了

LincZero commented 1 month ago

Labels should add invalid tag

github-actions[bot] commented 1 month ago

Hello @LincZero. This issue is marked as invalid and closed. Please make sure you are reporting an issue and following the issue template.