Fixes Encoding / Decoding issues with Notebook Linking (#17304)

* fixes encoding / decoding issues with %20 files

* fix windows test

* address PR comments and absolute path setting
This commit is contained in:
Vasu Bhog
2021-10-08 15:22:10 -07:00
committed by GitHub
parent 75d6847a65
commit c35cd3e48f
6 changed files with 50 additions and 26 deletions

View File

@@ -149,7 +149,8 @@ export class NotebookMarkdownRenderer {
.replace(/>/g, '>')
.replace(/"/g, '"')
.replace(/'/g, ''');
return `<a href=${href} data-href="${href}" title="${title || href}" is-absolute=${hrefAbsolute}>${text}</a>`;
let isMarkdown = markdown.value ? true : false;
return `<a href=${href} data-href="${href}" title="${title || href}" is-markdown=${isMarkdown} is-absolute=${hrefAbsolute}>${text}</a>`;
}
};
renderer.paragraph = (text): string => {