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

Fix relative links in postprocessed images #16334

Merged
merged 4 commits into from
Jul 4, 2021

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Jul 3, 2021

If a pre-post-processed file contains relative img tags these need to be updated
and joined correctly with the prefix. Finally, the node attributes need to be updated.

Regression of #16098
Fix #16308

Signed-off-by: Andrew Thornton [email protected]

If a pre-post-processed file contains relative img tags these need to be updated
and joined correctly with the prefix. Finally, the node attributes need to be updated.

Fix go-gitea#16308

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added this to the 1.15.0 milestone Jul 3, 2021
@zeripath zeripath added the issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself label Jul 3, 2021
@codecov-commenter
Copy link

codecov-commenter commented Jul 3, 2021

Codecov Report

Merging #16334 (59024ea) into main (fae07cb) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #16334      +/-   ##
==========================================
+ Coverage   45.43%   45.46%   +0.03%     
==========================================
  Files         709      709              
  Lines       83686    83687       +1     
==========================================
+ Hits        38022    38052      +30     
+ Misses      39564    39540      -24     
+ Partials     6100     6095       -5     
Impacted Files Coverage Δ
modules/markup/html.go 79.15% <100.00%> (+1.04%) ⬆️
models/repo_list.go 77.82% <0.00%> (+0.77%) ⬆️
services/gitdiff/gitdiff.go 73.90% <0.00%> (+1.41%) ⬆️
modules/log/file.go 75.39% <0.00%> (+1.58%) ⬆️
modules/charset/charset.go 77.77% <0.00%> (+6.06%) ⬆️
modules/util/timer.go 85.71% <0.00%> (+42.85%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fae07cb...59024ea. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 3, 2021
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 3, 2021
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 4, 2021
@zeripath zeripath merged commit 32fd113 into go-gitea:main Jul 4, 2021
@zeripath zeripath deleted the fix-image-links-regression branch July 4, 2021 09:26
zeripath added a commit to zeripath/gitea that referenced this pull request Jul 4, 2021
If a pre-post-processed file contains relative img tags these need to be updated
and joined correctly with the prefix. Finally, the node attributes need to be updated.

Fix go-gitea#16308

Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: 6543 <[email protected]>
@zeripath zeripath added the backport/done All backports for this PR have been created label Jul 4, 2021
6543 added a commit that referenced this pull request Jul 4, 2021
* Fix relative links in postprocessed images (#16334)

If a pre-post-processed file contains relative img tags these need to be updated
and joined correctly with the prefix. Finally, the node attributes need to be updated.

Fix #16308

Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: 6543 <[email protected]>
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 10, 2021
If a pre-post-processed file contains relative img tags these need to be updated
and joined correctly with the prefix. Finally, the node attributes need to be updated.

Fix go-gitea#16308

Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: 6543 <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relative Image Links Are Broken In READMEs
5 participants