mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 10:44:02 +02:00
terse text can contain marks (#248)
This commit is contained in:
committed by
Ian Storm Taylor
parent
af29cf6e70
commit
1585a64412
@@ -569,7 +569,8 @@ const Raw = {
|
|||||||
return {
|
return {
|
||||||
kind: object.kind,
|
kind: object.kind,
|
||||||
ranges: [{
|
ranges: [{
|
||||||
text: object.text
|
text: object.text,
|
||||||
|
marks: object.marks || []
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
nodes:
|
||||||
|
- kind: block
|
||||||
|
type: paragraph
|
||||||
|
nodes:
|
||||||
|
- kind: text
|
||||||
|
text: one
|
||||||
|
- kind: text
|
||||||
|
text: two
|
||||||
|
marks:
|
||||||
|
- type: bold
|
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
nodes:
|
||||||
|
- type: paragraph
|
||||||
|
isVoid: false
|
||||||
|
data: {}
|
||||||
|
nodes:
|
||||||
|
- characters:
|
||||||
|
- text: o
|
||||||
|
marks: []
|
||||||
|
- text: n
|
||||||
|
marks: []
|
||||||
|
- text: e
|
||||||
|
marks: []
|
||||||
|
- text: t
|
||||||
|
marks:
|
||||||
|
- type: bold
|
||||||
|
data: {}
|
||||||
|
- text: w
|
||||||
|
marks:
|
||||||
|
- type: bold
|
||||||
|
data: {}
|
||||||
|
- text: o
|
||||||
|
marks:
|
||||||
|
- type: bold
|
||||||
|
data: {}
|
Reference in New Issue
Block a user