1.0.4 • Published 1 year ago

@imdbsd/slate-string-deserialize v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Slate String Deserialize

Deserialiaze plain string to slate value. Currently target slate > 0.5x version.

Example

more example can be found on __tests__ directory

import deserialize from 'slate-string-deserialize'

deserialize('hello world')
/*
[{type: 'paragraph', children: [{text: 'hello world'}]}]
*/
1.0.4

1 year ago