Skip to content

Commit

Permalink
Fixed non-working images in API descriptions (#2188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorohova authored May 29, 2023
1 parent e873140 commit 5e6df1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/markdownService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class MarkdownService {
})
.use(rehypeStringify)
.process(markdown, (err: any, html: any) => {
processedHtml = truncate(html.value, length, {truncateLastWord: false});
processedHtml = truncate(html.value, length, { truncateLastWord: false, keepImageTag: true });
});

return processedHtml;
Expand Down

0 comments on commit 5e6df1a

Please sign in to comment.