Source:
{
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Wow, this has support for links to the whole "
},
{
"type": "text",
"marks": [
{
"type": "link",
"attrs": {
"href": "https://en.wikipedia.org/wiki/World_Wide_Web",
"target": "_blank",
"class": null
}
}
],
"text": "world wide web"
},
{
"type": "text",
"text": ". We tested a lot of URLs and I think you can add *every URL* you want. Isn’t that cool? Let’s try "
},
{
"type": "text",
"marks": [
{
"type": "link",
"attrs": {
"href": "https://statamic.com/",
"target": "_blank",
"class": null
}
}
],
"text": "another one!"
},
{
"type": "text",
"text": " Yep, seems to work."
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "By default every link will get a "
},
{
"type": "text",
"marks": [
{
"type": "code"
}
],
"text": "rel=\"noopener noreferrer nofollow\""
},
{
"type": "text",
"text": " attribute. It’s configurable though."
}
]
}
]
}
Wow, this has support for links to the whole world wide web. We tested a lot of URLs and I think you can add *every URL* you want. Isn’t that cool? Let’s try another one! Yep, seems to work.
By default every link will get a rel="noopener noreferrer nofollow"
attribute. It’s configurable though.