fix: resolve markdown links to handle relative URLs#358
Merged
camwiegert merged 5 commits intomasterionic-team/ionic-docs:masterfrom Jan 28, 2019
Merged
fix: resolve markdown links to handle relative URLs#358camwiegert merged 5 commits intomasterionic-team/ionic-docs:masterfrom
camwiegert merged 5 commits intomasterionic-team/ionic-docs:masterfrom
Conversation
camwiegert
reviewed
Jan 27, 2019
Contributor
|
Looking at the way that GitHub resolves links in a README, they seem to resolve all base paths as if they were a directory. Whereas Node's plain url.resolve would handle it like this: So I think we should handle it like GitHub and append a trailing slash during resolution if there isn't one. Does that make sense? |
Contributor
Author
|
@camwiegert I was achieving that with the trailing slash here: But it looks like that got lost in the merge. |
Contributor
|
@ltm Oh, I see. I think I'd rather move that into the link renderer so that it will apply to every link instead of just the API pages. |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.