From 62af81e88c02a07326a4c5f8bdf0293b8a45480e Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Tue, 29 Oct 2019 19:48:57 -0700 Subject: [PATCH] Notebooks: Fix relative images not rendering on PC for Markdown Cells (#8091) * Fix relative images on notebook markdown pc * PR feedback around replace ordering --- .../parts/notebook/browser/outputs/notebookMarkdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/parts/notebook/browser/outputs/notebookMarkdown.ts b/src/sql/workbench/parts/notebook/browser/outputs/notebookMarkdown.ts index 14d65a1647..d5a5a99e67 100644 --- a/src/sql/workbench/parts/notebook/browser/outputs/notebookMarkdown.ts +++ b/src/sql/workbench/parts/notebook/browser/outputs/notebookMarkdown.ts @@ -203,7 +203,7 @@ export class NotebookMarkdownRenderer { href = this.resolveUrl(base, href); } try { - href = encodeURI(href).replace(/%25/g, '%'); + href = encodeURI(href).replace(/%5C/g, '\\').replace(/%25/g, '%'); } catch (e) { return null; }