MicheleBertoli / remark-unwrap-images

Remove the wrapping paragraph around images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%