Fix for relative markdown image paths (#4889)

* Fix for relative markdown image paths

* PR comments
This commit is contained in:
Chris LaFreniere
2019-04-10 11:35:06 -07:00
committed by GitHub
parent d6df20b0e8
commit 88712f46bf
2 changed files with 26 additions and 4 deletions

View File

@@ -139,8 +139,10 @@ export class MarkdownEngine {
// {{SQL CARBON EDIT}} - Add renderText method
public async renderText(document: vscode.Uri, text: string): Promise<string> {
const engine = await this.getEngine(this.getConfig(document));
return engine.render(text);
const config = this.getConfig(document);
const engine = await this.getEngine(config);
this.currentDocument = document;
return engine.render(text, config);
}
// {{SQL CARBON EDIT}} - End