Keep an empty doc content in editor-normal ADF, as the schema requires
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user