Skip to content

Storing of output data #311

Closed
Closed
@Kuureki

Description

@Kuureki

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.

  1. If you try to store in markdown there is complete loss of indentation, alignment, colors etc.
  2. If you try to store it in HTML, the output instead of using the style prop uses class prop which would definitely make it harder to adapt with custom components.
  3. 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 -

  1. Markdown output will always have lossy output, there's no way to fix this except for using inline HTML.
  2. For HTML, it should use the style prop rather than using custom class prop.
  3. Storing the raw data can be extremely helpful if there's an way to convert the blocks to HTML without initialisation of a editor.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions