The rule
node represents a divider, it is equivalent to the HTML <hr/> tag.
rule
is a top-level block node.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ "version": 1, "type": "doc", "content": [ { "type": "paragraph", "content": [ { "type": "text", "text": "Hello world" } ] }, { "type": "rule" } ] }
Name | Required | Type | Value |
---|---|---|---|
type | ✔ | string | "rule" |
Rate this page: