Permalink
Browse files

add link example (#4)

It seems useful to add different examples of how enriched content structures looks. This with an external URL.
  • Loading branch information...
kmelve committed Dec 11, 2018
1 parent 2416d5f commit 4e647fb0f8776804754425e149d1711da784a09d
Showing with 31 additions and 0 deletions.
  1. +31 −0 examples/withLink.json
@@ -0,0 +1,31 @@
[{
"_type": "block",
"_key": "3628734dd519",
"style": "normal",
"markDefs": [{
"_type": "link",
"_key": "e556761904ba",
"href": "https://www.portabletext.org"
}],
"children": [{
"_type": "span",
"_key": "3628734dd5190",
"text": "This is a paragraph with a ",
"marks": []
},
{
"_type": "span",
"_key": "3628734dd5191",
"text": "link",
"marks": [
"e556761904ba"
]
},
{
"_type": "span",
"_key": "3628734dd5192",
"text": ".",
"marks": []
}
]
}]

0 comments on commit 4e647fb

Please sign in to comment.