Fix for relative links not being resolved in notebook outputs (#7966)

* Fix for relative links not being resolved

* Add comment
This commit is contained in:
Chris LaFreniere
2019-10-23 18:49:52 -07:00
committed by GitHub
parent 806d807eae
commit c2022cac57

View File

@@ -190,7 +190,9 @@ export class NotebookMarkdownRenderer {
}
}
try {
if (URI.parse(href)) {
// The call to resolveUrl() (where relative hrefs are converted to absolute ones) comes after this point
// Therefore, we only want to return immediately if the path is absolute here
if (URI.parse(href) && path.isAbsolute(href)) {
return href;
}
} catch {