Markdown problem with char # in url #403

Closed
opened 2018-12-02 01:22:55 +00:00 by tetsumaki · 3 comments
Member

If an url contains #, this generates a bad href.

Eq :
[test](https://domain.tld/test#12345)

Generated href :
https://domain.tld/test<a href='https://my-instance.tld/tag/12345' rel='tag'>#12345</a>

If an url contains #, this generates a bad href. Eq : `[test](https://domain.tld/test#12345)` Generated href : `https://domain.tld/test<a href='https://my-instance.tld/tag/12345' rel='tag'>#12345</a>`
Member

I think this is the code, responsible for markdown formatting https://git.pleroma.social/pleroma/pleroma/blob/develop/lib/pleroma/web/common_api/utils.ex#L134

I think this is the code, responsible for markdown formatting https://git.pleroma.social/pleroma/pleroma/blob/develop/lib/pleroma/web/common_api/utils.ex#L134
Member

yes, it's a problem with Formatter logic. i have plans to rework it.

yes, it's a problem with `Formatter` logic. i have plans to rework it.
Member

I can't reproduce it. I guess it was fixed either by #3938 or #4422.

I can't reproduce it. I guess it was fixed either by https://git.pleroma.social/pleroma/pleroma/pulls/3938 or https://git.pleroma.social/pleroma/pleroma/pulls/4422.
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma#403
No description provided.