mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
fix: crash in MarkdownRenderer on non-string
This commit is contained in:
parent
b95f665526
commit
dead16199f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user