portabletext / toolkit

Toolkit of handy utility functions for dealing with Portable Text

Home Page:https://portabletext.github.io/toolkit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@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

About

Toolkit of handy utility functions for dealing with Portable Text

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

License:MIT License


Languages

Language:TypeScript 99.8%Language:Shell 0.2%