alist-web icon indicating copy to clipboard operation
alist-web copied to clipboard

fix: base path for relative path in markdown

Open liuycy opened this issue 9 months ago • 0 comments

fix https://github.com/alist-org/alist/issues/6419

改动如下

  • Markdown 预览组件 解析 相对路径 时 加上 base_path
  • 新增 pathResolve 工具函数,将类似 ./a ../a a/../b 的路径转成绝对路径

liuycy avatar May 06 '24 04:05 liuycy