Dimillian / Dimillian/IceCubesApp
Bug: Markdown links in user's profile are not tapable
Open
Nobody has claimed this yet.
bug
- Dominant language
- Swift
- Stars
- 7.1k
- Forks
- 720
- PR merge metrics
- No merged PRs in 30d
Description
For example,
I'm [nixzhu](https://mastodon.social/@nixzhu).
will be rendered from
I'm [nixzhu]([https://mastodon.social/@nixzhu](https://mastodon.social/@nixzhu)).
I think the problem is that the asMarkdown in HTMLString is from HTMLParser().parse(html: htmlValue)
do {
asMarkdown = try HTMLParser().parse(html: htmlValue)
.toMarkdown()
.replacingOccurrences(of: ")[", with: ") [")
} catch {
asMarkdown = htmlValue
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at HTMLString.asMarkdown and inspect the HTMLParser().parse(html: htmlValue).toMarkdown() conversion, including the replacingOccurrences call shown in the issue. Reproduce the profile Markdown example and verify that the resulting link is not nested or malformed and can be tapped.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100