feat: add lazy attribute for img

pull/2/head
Nicolas Doby 2022-11-20 13:03:01 +01:00
parent 2ac677919b
commit d9142a9a46
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ let options = {
};
let mdfigcaption = require('markdown-it-image-figures');
let figoptions = {
figcaption: true
figcaption: true,
lazy: true,
async: true,
};
const mdLib = markdownIt(options).use(mdfigcaption, figoptions);