Skip to content

Commit

Permalink
Merge pull request #207 from jbrunton/renovate-marked-6.x
Browse files Browse the repository at this point in the history
chore(deps): update dependency @types/marked to v6
  • Loading branch information
jbrunton authored Sep 14, 2024
2 parents 344634a + 5e629d6 commit 9b98e32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 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": "4.3.2",
"@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 }))
}
20 changes: 6 additions & 14 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 9b98e32

Please sign in to comment.