Skip to content

Link titles not supported? #67

@DamianMehers

Description

@DamianMehers

Example 481 of the commonmark spec shows the use of a title in a link:

[link](/uri "title")

however I don't see the title property in the Link documentation

When I test, it seems as though the title is discarded:

let document = Document(parsing: "[link](/uri \"title\")")
print(document.debugDescription())

Outputs:

Document
└─ Paragraph
   └─ Link destination: "/uri"
      └─ Text "link"

Title is supported for Images:

let document2 = Document(parsing: "![foo](/url \"title\")")
print(document2.debugDescription())

Outputs the title:

Document
└─ Paragraph
   └─ Image source: "/url" title: "title"
      └─ Text "foo"

Is this a version thing?

Thanks,
Damian

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions