Skip to content

images in _draft post asset folder can't be accessed using markdown #181

@SeriesOfUnlikelyExplanations

Description

looking at https://hexo.io/docs/asset-folders.html section "Embedding an image using markdown". When I use the markdown syntax for a post in my _posts folder it works fine, but when I try to do the same in _drafts it doesn't work. It looks like the referenced image doesn't get any prepended root "localhost:4000/trail-and-sunset.jpg" and it throws an error "Cannot GET".

Is there a way to enable using prepend root and post asset folder for posts in my _draft folder?

My _config:
post_asset_folder: true
marked:
gfm: true
prependRoot: true
postAsset: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions