@matfire/rehype-photoswipe

0.0.2 • Public • Published

rehype-photoswipe

NPM Version

A Rehype extension to add data-pswp-width and data-pswp-height attributes to img tags.

Install

npm install @matfire/rehype-photoswipe

Usage

import rehype from 'rehype'
import rehypePhotoswipe from '@matfire/rehype-photoswipe'

const html = await rehype()
    .use(rehypePhotoswipe)
    .process('...')

Readme

Keywords

none

Package Sidebar

Install

npm i @matfire/rehype-photoswipe

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

2.72 MB

Total Files

7

Last publish

Collaborators

  • matfire