@portabletext/toolkit - v2.0.16

@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