Skip to content

1056ng/markdown-it-img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-it-img

<img> tag plugin for markdown-it

HOW TO USE

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}/`);
  }
}));

License

MIT

About

<img> tag plugin for markdown-it

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published