Skip to content

Commit

Permalink
chore: update marked
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrunton committed Sep 14, 2024
1 parent 48baac3 commit 5e629d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
3 changes: 1 addition & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"event-source-polyfill": "1.0.31",
"framer-motion": "8.5.5",
"highlight.js": "11.10.0",
"marked": "4.3.0",
"marked": "14.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "4.12.0",
Expand All @@ -43,7 +43,6 @@
"@types/debug": "4.1.12",
"@types/dompurify": "2.4.0",
"@types/event-source-polyfill": "1.0.5",
"@types/marked": "6.0.0",
"@types/node": "^20.0.0",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
Expand Down
2 changes: 1 addition & 1 deletion client/src/features/room/molecules/formatted-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ marked.setOptions({
})

const formatContent = (content: string) => {
return DOMPurify.sanitize(marked.parse(content))
return DOMPurify.sanitize(marked.parse(content, { async: false }))
}
23 changes: 6 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e629d6

Please sign in to comment.