Closed
Description
Blocknote is an amazing editor, I loved the ui and how it was easy to setup but right now there's no good way for storing the output data, be it raw json, html or markdown.
- If you try to store in markdown there is complete loss of indentation, alignment, colors etc.
- If you try to store it in HTML, the output instead of using the
style
prop usesclass
prop which would definitely make it harder to adapt with custom components. - Storing data in json is absolutely is no go since there's no way to actually convert it to html or markdown at a later point with utility functions.
Possible solutions -
- Markdown output will always have lossy output, there's no way to fix this except for using inline HTML.
- For HTML, it should use the
style
prop rather than using customclass
prop. - Storing the raw data can be extremely helpful if there's an way to convert the blocks to HTML without initialisation of a editor.