Skip to content

MicheleBertoli/remark-unwrap-images

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remark-unwrap-images Build Status

Remark plugin to remove wrapping paragraph tag for images.

Installation

npm i -S remark-unwrap-images

Usage

const remark = require('remark')
const unwrapImages = require('remark-unwrap-images')
const html = require('remark-html')

remark()
  .use(unwrapImages)
  .use(html)
  .process(markdownString, function (err, file) {
    if (err) { throw err }

    console.log(String(file))
  })

About

Remove the wrapping paragraph around images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%