<img>
tag plugin for markdown-it
const markdown = require('markdown-it')();
const markdownItImg = require('markdown-it-img');
markdown.use(markdownItImg((attr, value, env) => {
if (attr === 'src') {
return value.replace('./', `${env.baseUrl}/`);
}
}));