#2389 Odd rendering of markdown URLs with paths containing colons
Closed: Fixed 6 years ago Opened 6 years ago by tibbs.

This text:

[here](https://fedoraproject.org/wiki/Packaging:Guidelines)

Renders somewhat oddly:

here

It makes a link but it seems to always go to whatever the current URL is instead of the provided link. Right now if I preview this it goes to "https://pagure.io/pagure/new_issue" but after I submit this I believe it will link to the issue I'm submitting.


here

has the problem, but

here

doesn't...

Metadata Update from @pingou:
- Issue tagged with: bug

6 years ago

It looks like it comes from Python-Makdown lib see here.

The comments seems to indicate not to use the safe_mode and use bleach to do something like bleach.clean(markdown.markdown(sometext))

Edit:
It even seems that safe_mode is deprecated see here

Metadata Update from @cverna:
- Issue assigned to cverna

6 years ago

Metadata Update from @pingou:
- Issue close_status updated to: Fixed

6 years ago

Login to comment on this ticket.

Metadata