Skip to content

Custom link titles authored with []() syntax for doc links are silently ignored #271

@franklinsch

Description

@franklinsch

Custom link titles for doc links are silently ignored.

If I write a doc link with a title like:

Check out [this great function](doc:Sloth/eat(_:quantity:)).

the rendered output is

Check out eat(_:quantity:).

We should use the user-provided title, per the original Markdown spec.

Checklist

  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue.

Steps to Reproduce

Author a doc link to a symbol or article using a custom title, as described above. Build documentation and notice that in the rendered documentation, the custom title isn't used for the link title.

Swift-DocC Version Information

Swift-DocC version: 5.6
Swift Compiler version: N/A

Radar: rdar://79992417

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions