hexo-renderer-pandoc icon indicating copy to clipboard operation
hexo-renderer-pandoc copied to clipboard

Can I set the resource root path?

Open ytf4425 opened this issue 1 year ago • 0 comments

I use typora to write md file.

When I insert picture in my article xxx.md, typora will create a directory named xxx and put picture in it, then insert in my article.

When I used hexo-renderer-marked, I can write following config to make it generate the web page with picture url like http://example.com/xxx/yyy.png.

post_asset_folder: true
marked:
  prependRoot: true
  postAsset: true

However, I have not found a way to set hexo-renderer-pandoc to use such a resource url. Now it generate the web page with picture url live http://example.com/xxx/xxx/yyy.png (a wrong path).

Now I use hexo-asset-img to solve it temporarily

ytf4425 avatar Apr 04 '23 14:04 ytf4425