-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 markdown links with anchors #4058
Conversation
Add test case Signed-off-by: Jonas Franz <info@jonasfranz.software>
Codecov Report
@@ Coverage Diff @@
## master #4058 +/- ##
==========================================
+ Coverage 19.96% 19.97% +0.01%
==========================================
Files 153 153
Lines 30482 30491 +9
==========================================
+ Hits 6086 6091 +5
- Misses 23483 23486 +3
- Partials 913 914 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use https://golang.org/pkg/net/url/#URL.ResolveReference .
As it is the recommended way to do it.
@sapk If I use |
@JonasFranzDEV Only relative one are failing https://play.golang.org/p/kk0OHdtTg0i |
And this could easely be check by u.IsAbs() |
Signed-off-by: Jonas Franz <info@jonasfranz.software>
@JonasFranzDEV please send back port to release/v1.4 |
Fix #3784
This is not the most elegant solution but it works.