[PR #1027] [MERGED] Fix URL handling in the whole markdown module, improve test coverage (fix #997) #15717

Closed
opened 2025-11-02 11:52:59 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1027
Author: @andrew-boyarshin
Created: 2/23/2017
Status: Merged
Merged: 2/24/2017
Merged by: @lunny

Base: masterHead: master


📝 Commits (1)

  • 0fdb01e Fix URL handling in the whole markdown module, improve test coverage

📊 Changes

6 files changed (+276 additions, -155 deletions)

View changed files

📝 models/mail.go (+1 -1)
📝 modules/markdown/markdown.go (+76 -44)
📝 modules/markdown/markdown_test.go (+188 -107)
📝 routers/api/v1/misc/markdown.go (+7 -1)
📝 routers/api/v1/misc/markdown_test.go (+3 -2)
📝 vendor/code.gitea.io/sdk/gitea/miscellaneous.go (+1 -0)

📄 Description

As it is in the title.

Plus, links to issues or PRs in external repositories will no longer be rewritten to current repo.

Fixes issue #997. Merging this PR will increase coverage to 32.4% from 31.8%.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1027 **Author:** [@andrew-boyarshin](https://github.com/andrew-boyarshin) **Created:** 2/23/2017 **Status:** ✅ Merged **Merged:** 2/24/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`0fdb01e`](https://github.com/go-gitea/gitea/commit/0fdb01e31f34881b4cb96ad62def329fe1127feb) Fix URL handling in the whole markdown module, improve test coverage ### 📊 Changes **6 files changed** (+276 additions, -155 deletions) <details> <summary>View changed files</summary> 📝 `models/mail.go` (+1 -1) 📝 `modules/markdown/markdown.go` (+76 -44) 📝 `modules/markdown/markdown_test.go` (+188 -107) 📝 `routers/api/v1/misc/markdown.go` (+7 -1) 📝 `routers/api/v1/misc/markdown_test.go` (+3 -2) 📝 `vendor/code.gitea.io/sdk/gitea/miscellaneous.go` (+1 -0) </details> ### 📄 Description As it is in the title. Plus, links to issues or PRs in external repositories will no longer be rewritten to current repo. Fixes issue #997. Merging this PR will increase coverage to 32.4% from 31.8%. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:52:59 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15717