mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-20 13:22:04 +02:00
terse text can contain marks (#248)
This commit is contained in:
parent
af29cf6e70
commit
1585a64412
@ -569,7 +569,8 @@ const Raw = {
|
||||
return {
|
||||
kind: object.kind,
|
||||
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: {}
|
Loading…
x
Reference in New Issue
Block a user