Skip to content

des-soft/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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%