How to convert slate object to HTML and render it? #4774
-
I have the following retrieved from the database and I'm trying to render it as HTML ( not inside an editor ).
I tried installing What options do I have? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can write a serializer. |
Beta Was this translation helpful? Give feedback.
-
When writing a serializer for HTML, I found it tricky - lots to consider such as whitespace, how to handle Actively working on a package that hopefully makes this easier: https://github.com/thompsonsj/slate-serializers. |
Beta Was this translation helpful? Give feedback.
You can write a serializer.
the docs can point you in this direction:
https://docs.slatejs.org/concepts/10-serializing