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

Can postAsset render exclude post name?

Open tisonkun opened this issue 2 years ago • 1 comments

Currently,

  • "image.jpg" is located at "/2020/01/02/foo/image.jpg", which is a post asset of "/2020/01/02/foo/".
  • ![](image.jpg) becomes <img src="/2020/01/02/foo/image.jpg">

But always I write posts at "/2020/01/02/foo.md" and thus if I write image link like ![](image.jpg) then it's violate with markdown semantic, which should have been ![](foo/image.jpg).

I wonder whether we can render the link with prefix "/2020/01/02" and thus I can write normal markdown even if it's not rendered.

tisonkun avatar Apr 21 '22 00:04 tisonkun

You can refer to it.

md img render part improvement of hexo-render-marked #216 #216

Jack-InGitHub avatar Aug 15 '22 07:08 Jack-InGitHub

Please join the discussion in https://github.com/hexojs/hexo-renderer-marked/issues/216

stevenjoezhang avatar Jul 11 '23 08:07 stevenjoezhang