Skip to content

Commit

Permalink
refactor: update marked
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Nov 26, 2024
1 parent a87569f commit 08bd938
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"leaflet": "^1.9.4",
"lil-gui": "^0.19.2",
"luxon": "^3.5.0",
"marked": "^11.1.0",
"marked": "^15.0.2",
"marked-katex-extension": "^5.1.3",
"marked-linkify-it": "^3.1.12",
"microsoft-cognitiveservices-speech-sdk": "1.34.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChatBubble/ChatBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ marked.use({
gfm: true,
pedantic: true,
renderer: {
link(href: string, title: string | null | undefined, text: string) {
link: ({ href, title, text }) => {
const cleanHref = cleanUrl(href);
if (cleanHref === null) {
return text;
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4156,7 +4156,7 @@ __metadata:
leaflet: ^1.9.4
lil-gui: ^0.19.2
luxon: ^3.5.0
marked: ^11.1.0
marked: ^15.0.2
marked-katex-extension: ^5.1.3
marked-linkify-it: ^3.1.12
microsoft-cognitiveservices-speech-sdk: 1.34.0
Expand Down Expand Up @@ -15503,12 +15503,12 @@ __metadata:
languageName: node
linkType: hard

"marked@npm:^11.1.0":
version: 11.1.0
resolution: "marked@npm:11.1.0"
"marked@npm:^15.0.2":
version: 15.0.2
resolution: "marked@npm:15.0.2"
bin:
marked: bin/marked.js
checksum: fdc553ebfdc5fc5fe5c5d0d1831f4f8c3ed5fd89af7a428df5e0abce8fceac23da826b762c53027b7a900579b73e6d33908a0cf0c7618d03e0f378e710439d18
checksum: 2315c8cbe1127d9598da5a978d7776aef6bc4dd65ea79a6632cd45e3cf4c8505700f1c8375104243677cc7d6b0f1275679cdfdf02f202cc805ed33cbf6b79c23
languageName: node
linkType: hard

Expand Down

0 comments on commit 08bd938

Please sign in to comment.