Skip to content

Commit

Permalink
fix: crash in MarkdownRenderer on non-string
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Feb 7, 2018
1 parent b95f665 commit dead161
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/services/MarkdownRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ export class MarkdownRenderer {
md.renderer.rules.heading_close = this.headingCloseRule;
}

const text = rawText;

const res = md.render(text);
const res = md.render(rawText.toString());

if (!raw) {
this.restoreOrigRules();
Expand Down

0 comments on commit dead161

Please sign in to comment.