diff --git a/README.md b/README.md index ed921e3..7b824b7 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ marked: autolink: true sanitizeUrl: false headerIds: true + lazyload: false prependRoot: false external_link: enable: false @@ -47,6 +48,7 @@ marked: - **autolink** - Enable autolink for URLs. E.g. `https://hexo.io` will become `https://hexo.io`. - **sanitizeUrl** - Remove URLs that start with `javascript:`, `vbscript:` and `data:`. - **headerIds** - Insert header id, e.g. `

text

`. Useful for inserting anchor link to each paragraph with a heading. +- **lazyload** - Lazy loading images via `loading="lazy"` attribute. - **prependRoot** - Prepend root value to (internal) image path. * Example `_config.yml`: ``` yml diff --git a/index.js b/index.js index 62662ad..4a82c9b 100644 --- a/index.js +++ b/index.js @@ -14,9 +14,9 @@ hexo.config.marked = Object.assign({ autolink: true, sanitizeUrl: false, headerIds: true, + lazyload: false, // TODO: enable prependRoot by default in v3 prependRoot: false, - lazyload: false, external_link: { enable: false, exclude: [],