Support original markdown image expressions when enabling post_asset_folder
,
and no need to use private hexo tags anymore
./path/asset.jpg
will be replaced to your_post_path/asset.jpg
URLs started with http
, https
, //
, /
or plain string(path/asset.jpg
) will keep
If you want to render the image link as markdown style instead of tag plugins style, you should add following code to _config.yml
of hexo project.
asset:
tag_plugins_mode: false
tag_plugins_mode
: set the image link to tag plugins mode(default mode, true
) or markdown mode(false
).- tag plugins mode:
{% asset_img slug [title] %}
- markdown mode:
![image title](image url)
- tag plugins mode:
- test
- can add a custom host prefix path such as a cdn address