Skip to content

Toolkit of handy utility functions for dealing with Portable Text

License

Notifications You must be signed in to change notification settings

portabletext/toolkit

Repository files navigation

@portabletext/toolkit

npm versionnpm bundle sizeBuild Status

Javascript toolkit of handy utility functions for dealing with Portable Text.

Particularly useful for building rendering libraries for Portable Text that outputs HTML.

Installation

npm install --save @portabletext/toolkit

Documentation

See https://portabletext.github.io/toolkit/

Usage

import {toPlainText} from '@portabletext/toolkit'

console.log(toPlainText(myPortableTextBlocks))

License

MIT © Sanity.io