Skip to content
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

Markdown links are truncated (when URL contains number followed by slash) #6551

Closed
2 of 7 tasks
nodiscc opened this issue Apr 9, 2019 · 3 comments
Closed
2 of 7 tasks

Comments

@nodiscc
Copy link
Contributor

nodiscc commented Apr 9, 2019

  • Gitea version (or commit ref): 1.7.4
  • Git version: 2.11.0-3
  • Operating system: Debian 9 Stretch
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL - see below)
    • No
    • Not relevant
  • Log gist:

Description

When you paste an URL such as https://www.networkworld.com/article/3239677/the-osi-model-explained-how-to-understand-and-remember-the-7-layer-network-model.html in a Markdown file, and view the rendered markdown/html from the web interface, the generated link URL is truncated when a number followed by a slash is encountered (7/the...).

This happens for files in repositories and on wiki pages.

Examples:

I have looked for something similar at https://github.com/russross/blackfriday/issues but found nothing. Should I report it there?

Screenshots

a

@nodiscc
Copy link
Contributor Author

nodiscc commented Apr 9, 2019

@mrsdizzie
Copy link
Member

mrsdizzie commented Apr 9, 2019

This is fixed in master (and release/v1.8), but I think try.gitea.io hasn't been updated in a while for some reason. Particularly, this is initially fixed by #6445

@nodiscc
Copy link
Contributor Author

nodiscc commented Apr 9, 2019

Thank you, that was quick!

Duplicate of #4813 and fixed in master.

@nodiscc nodiscc closed this as completed Apr 9, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants