@portabletext/toolkit
v2.0.16
Published
Toolkit of handy utility functions for dealing with Portable Text
Downloads
842,622
Readme
@portabletext/toolkit
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