Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can postAsset render exclude post name? #225

Closed
tisonkun opened this issue Apr 21, 2022 · 2 comments
Closed

Can postAsset render exclude post name? #225

tisonkun opened this issue Apr 21, 2022 · 2 comments

Comments

@tisonkun
Copy link

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.

@Jack-InGitHub
Copy link

You can refer to it.

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

@stevenjoezhang
Copy link
Member

Please join the discussion in #216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants