nodesargument, and returning a plaintext representation where each top-level node is separated by a single
\nnew line character.
serializefunction for HTML:
slate-hyperscriptis for writing JSX documents, for example when writing tests. You might use it like so:
slate-hyperscriptisn't only for JSX. It's just a way to build trees of Slate content. Which happens to be exactly what you want to do when you're deserializing something like HTML.
deserializefunction for HTML:
elHTML element object and returns a Slate fragment. So if you have an HTML string, you can parse and deserialize it like so: