Skip to content

Commit

Permalink
Re-use options from markdown engine instead of creating new options o…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Jan 25, 2019
1 parent b36fddf commit 7f17450
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class MarkdownEngine {
const config = this.getConfig(document.uri);
const engine = await this.getEngine(config);
return engine.renderer.render(this.tokenize(document, config, engine), {
...(await getMarkdownOptions(() => engine)),
...(engine as any).options,
...config
}, {});
}
Expand Down

0 comments on commit 7f17450

Please sign in to comment.