[go: up one dir, main page]

Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Oct 3, 2025

Mark - link

Purpose

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

Example

1
2
{
  "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: