feat: add lazy attribute for img
This commit is contained in:
@@ -14,7 +14,9 @@ let options = {
|
|||||||
};
|
};
|
||||||
let mdfigcaption = require('markdown-it-image-figures');
|
let mdfigcaption = require('markdown-it-image-figures');
|
||||||
let figoptions = {
|
let figoptions = {
|
||||||
figcaption: true
|
figcaption: true,
|
||||||
|
lazy: true,
|
||||||
|
async: true,
|
||||||
};
|
};
|
||||||
const mdLib = markdownIt(options).use(mdfigcaption, figoptions);
|
const mdLib = markdownIt(options).use(mdfigcaption, figoptions);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user