Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed Mar 18, 2024
1 parent 5c58799 commit 4b9d762
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/parseTextFromMarkDown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const renderPlain = () => {
};

export default function parseTextFromMarkDown(mdString: string) {
if (!mdString) return mdString;

return marked(mdString, {
renderer: renderPlain(),
async: false,
Expand Down

0 comments on commit 4b9d762

Please sign in to comment.