Learn more about these different git repos.
Other Git URLs
The markdown syntax says this can be used to include in-line images:
![Alt text](/path/to/img.jpg)
However, it doesn't work on pagure. It also says <img> tag can be used, but that doesn't work either.
<img>
<img alt="C67pdPnWgAAhpAH.jpg" src="/pagure/issue/raw/files/1e700e3aa12bc18efeae7ef8011d9549890055a75ea318370436fe07bc2f705f-C67pdPnWgAAhpAH.jpg" />
It works for me here
<img alt="test image" src="https://68.media.tumblr.com/avatar_25efafdbc2ba_128.png" />
As you can see, it doesn't work for me. I used:
![test image](https://68.media.tumblr.com/avatar_25efafdbc2ba_128.png)
and it created:
<p><img alt="test image"></p>
What code have you used?
<img alt="avatar_25efafdbc2ba_128.png" src="/pagure/issue/raw/files/88292001534ca3a43000a63e28765f7114a0e8081cc760153b22ec7fef0a40ad-avatar_25efafdbc2ba_128.png" />
Attachments work. OK, that helps. But that's not what I reported, I wanted to link an external image, not upload it.
That does not work in purpose, we do not want to link to images uploaded anywhere on the web.
Good to know. Why?
Also, it's unobvious. Perhaps the Markdown Syntax button under new comment box could lead to a page on pagure documenting which markdown commands are supported and which are not? Alternatively, an error can be displayed when somebody tries to use that syntax, possibly even inline (instead of showing the image, show "linking to external images is not allowed" text).
Markdown Syntax
There was security issues at one point about using the img tag to link to something that wasn't an image (like a js blob or so) and since we're serving the content via the same domain it could be problematic.
Those are good ideas :)
Metadata Update from @pingou: - Issue tagged with: RFE
For a start I went with linking to pagure's own markdown documentation and adding a warning there about remote images.
Metadata Update from @pingou: - Issue assigned to pingou
Commit e6d05d6 fixes this issue
Login to comment on this ticket.