You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added new text cursor fields & functions docs
* Made website and JS docs have same information + minor changes/fixes
* More minor changes & fixes
* More minor changes & fixes
* Added block structure diagram
* remove margin from editor (this is now built-in)
* Added PR feedback and cleaned up links
* Added most live examples
* Cleaned up event listeners
* Made `BNUpdateBlock` also apply props to `blockContainer` node
* Added text cursor demo and fixed listeners for others
* Fixed build error
* Fixed build error
---------
Co-authored-by: yousefed <[email protected]>
Copy file name to clipboardExpand all lines: packages/website/docs/docs/blocks.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,32 +59,33 @@ type Block = {
59
59
60
60
Now that we know how blocks are represented in code, let's take a look at the live example below. We have a BlockNote editor, under which we display its contents using an array of `Block` objects. Feel free to play around and get a better feel for how blocks look in the editor, compared to how they're represented using `Block` objects.
Tries to create `Block` objects out of any HTML block-level elements, and `InlineNode` objects from any HTML inline elements, though not all HTML tags are recognized. If BlockNote doesn't recognize an element's tag, it will parse it as a paragraph or plain text.
The output is simplified as Markdown does not support all features of BlockNote - children of blocks which aren't list items are un-nested and certain styles are removed.
Tries to create `Block` and `InlineNode` objects based on Markdown syntax, though not all symbols are recognized. If BlockNote doesn't recognize a symbol, it will parse it as text.
0 commit comments