Skip to content

Markdown URL fails for some strings #18488

@the-phinet

Description

@the-phinet

Describe the issue

If a link includes a colon (:), it must be url-encoded (%3A) in order for it to work properly.

According to this, raw colon characters may appear in paths, if the path is not relative. https://www.rfc-editor.org/rfc/rfc3986#section-3.3

Github and onlinemarkdown.com allow the colon as-is, weblate and stackedit.io require the encoding pass.

As far as I can tell, there's no way to make the link display correctly. escaping the colon and underscores makes the links still re

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

  1. Add a translation
  2. Add an explanation with the following link: https://doomwiki.org/wiki/E1M2:_Storage_Facility_(Chex_Quest)
  3. Save and observe

Expected behavior

Link appears like this: https://doomwiki.org/wiki/E1M2:_Storage_Facility_(Chex_Quest)

Image

Screenshots

Bad:

Image
Image

Fine, but inconvenient:

Image
Image

Perfect, but very inconvenient:

Image
Image

Exception traceback

How do you run Weblate?

weblate.org service

Weblate versions

No response

Weblate deploy checks

Additional context

It's a minor inconvenience, but not a big deal. Just makes copying wiki articles annoying

Metadata

Metadata

Assignees

Labels

Waiting for: ReleaseThe issue is fixed and waiting to be released.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions