Keep an empty doc content in editor-normal ADF, as the schema requires

This commit is contained in:
2026-10-03 16:22:54 +02:00
parent 00c89dd63b
commit 7bab478729
4 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ adjacent text nodes, an empty `attrs`, `content` or `marks`, and `-0`. Neither s
CommonMark's spelling stays wherever a document holds none of those shapes. The plain reader builds
what is written, as `markdownToAdf` does. Only the plain writer is lossy: its reduction reads and
writes editor-normal ADF — adjacent text nodes of identical marks and no attributes merged, `-0` as
`0`, and an empty `attrs`, `content` or `marks` the absent key — so two documents the editor holds
equal write the same plain markdown.
`0`, and an empty `attrs`, `content` or `marks` the absent key, but the doc's `content` — so two
documents the editor holds equal write the same plain markdown.
## `!adf:textBreak{}` parts text CommonMark would join