mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 19:48:37 -05:00
Books/fix relative links (#7083)
* fix to make relative links work on untitled notebooks * changes to make the preb/next links to work * show filename with extension
This commit is contained in:
@@ -226,6 +226,8 @@ export class NotebookMarkdownRenderer {
|
||||
return base.replace(/:[\s\S]*/, ':') + href;
|
||||
} else if (href.charAt(0) === '/') {
|
||||
return base.replace(/(:\/*[^/]*)[\s\S]*/, '$1') + href;
|
||||
} else if (href.slice(0, 2) === '..') {
|
||||
return path.join(base, href);
|
||||
} else {
|
||||
return base + href;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user