hexojs / hexo-renderer-markdown-it

Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
MIT License
341 stars 60 forks source link

Add image options like marked renderer #141

Closed fengkx closed 1 year ago

fengkx commented 3 years ago

Add image options to support prepend root / post asset. and image lazy load attribute.

Usage

# site config file
...
markdown:
  image:
    prependRoot: true # whether perpend root in img src
    postAsset: true # whether perpend root using post asset
    lazyload: true # whether add loading=lazy attribute
...
fengkx commented 3 years ago

@curbengh