Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Enable detected links as actual linksΒ #35

@garrettmurray

Description

@garrettmurray

Is your feature request related to a problem? Please describe.
One expectation of a Markdown preview is that links are actually clickable when they're identified and displayed as links.

Describe the solution you'd like
Two possible ways to solve this as I think about it (conveniently without any concern about implementation πŸ˜†):

A. Add logic to wrap detected link nodes in their link so that the entire [Text](https://link) is linked as a single unit (this seems complex).
Or
B. Allow for the isAutomaticLinkDetectionEnabled attribute of NSTextView to be utilized (and the UIDataDectorTypes.link equivalent on iOS) which would only link the actual URL from the link, but would at least still make the link clickable.

Seems like B would be much easier and get 90% of the way there, though it's less accurate to the preview technically. Would still be preferable, I think, to no linking at all, however.

Describe alternatives you've considered
Obviously, this isn't a blocker to using SwiftDownEditor, but it does mean one of the core features of Markdown doesn't actually do anything when you match it, which is odd.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions