Mark - link

Purpose

The link mark sets a hyperlink. This mark applies to text nodes.

Example

1 2 3 4 5 6 7 8 9 10 11 12 13 { "type": "text", "text": "Hello world", "marks": [ { "type": "link", "attrs": { "href": "http://atlassian.com", "title": "Atlassian" } } ] }

Fields

NameRequiredTypeValue
typestring"link"
attrsobject
attrs.collectionstring
attrs.hrefstringA URI
attrs.idstring
attrs.occurrenceKeystring
attrs.titlestringTitle for the URI

Attributes

  • collection
  • href defines the URL for the hyperlink and is the equivalent of the href value for a HTML <a> element.
  • id
  • occurrenceKey
  • title defines the title for the hyperlink and is the equivalent of the title value for a HTML <a> element.

Rate this page: