1
0
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:
Cássio Souza 2016-08-17 14:12:22 -03:00 committed by Ian Storm Taylor
parent af29cf6e70
commit 1585a64412
3 changed files with 38 additions and 1 deletions

View File

@ -569,7 +569,8 @@ const Raw = {
return {
kind: object.kind,
ranges: [{
text: object.text
text: object.text,
marks: object.marks || []
}]
}
}

View File

@ -0,0 +1,11 @@
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
text: one
- kind: text
text: two
marks:
- type: bold

View File

@ -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: {}