New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image with link in markdown not working properly #2636
Comments
Right now, only image path ends with |
Found the same problem in the latest develop build (0.9.12.0316) Markdown: For full example: |
I think I said something very clear... |
I think the mimetype is wrong for svg images. When accessing a readme file with a linked svg image gogs offers a 'plain' file; even following the presented link just shows me the text because the mimetype is wrong |
Confirmed, this snippet also doesn't work on gogs:
That is, it only produces the image, but not the link, as it should: [](https://drone.osgeo.kbt.io/geos/php-geos?branch=master, alt=build status) |
@unknwon ending or not with .svg doesn't make a difference, see here: |
Putting the image and link text onto the same line seems to fix the issue:
[](https://drone.osgeo.kbt.io/geos/php-geos?branch=master, alt=build status) This is not a problem on github. |
There needs be no newline between image url and target url. See gogs/gogs#2636 (comment)
I was wrong, single-line doesn't fix it either: |
@unknwon As I understand the rationale behind the code, it is there to have internally linked images being served from It seems to me that there are two issues here:
|
Meanwhile I've figured my own issue, and filed it as #3545 |
Patch has pushed to fix this issue, please test on |
Sorry, not develop branch, it's |
* Use search component on org invitation user input. * Search component for collaboration and members. * Search component for repo search. * minCharacters for search input * Display full_name for user search. * Fixed missing uid query parameter for repo search. * Removed unused comment.
Hi,
Image links in markdown are not working properly. Sometimes, the link is replaced with the image url.
For example, this markdown command :
[![Project Stats](image_url)](link_url)
sometimes produces a link to image_url instead of link_url :
<a href=image_url><img src=image_url /> </a>
instead of
<a href=link_url><img src=image_url /> </a>
The problem can be reproduced on https://try.gogs.io (Gogs Version: 0.8.37.0215):
https://try.gogs.io/chengbs/Openfire/src/3.10/README.md
The link of the first badge (travis-ci) is correct, but the second (openhub badge) is linking to the gif image.
Thanks,
The text was updated successfully, but these errors were encountered: