diff --git a/site/package.json b/site/package.json index e0689bad9..7a54d215b 100644 --- a/site/package.json +++ b/site/package.json @@ -82,7 +82,7 @@ "fuse.js": "^6.6.2", "iframe-resizer": "^4.3.2", "isbot": "^3.6.5", - "markdown-to-jsx": "^7.1.7", + "markdown-to-jsx": "^7.1.9", "modele-social": "workspace:^", "publicodes": "^1.0.0-beta.65", "publicodes-react": "^1.0.0-beta.65", diff --git a/site/source/components/utils/markdown.tsx b/site/source/components/utils/markdown.tsx index 4f767c6d7..aa0a28a0f 100644 --- a/site/source/components/utils/markdown.tsx +++ b/site/source/components/utils/markdown.tsx @@ -143,7 +143,7 @@ export const Markdown = ({ }, }} > - {children} + {children ?? ''} ) diff --git a/yarn.lock b/yarn.lock index 3d902edf5..a86625247 100644 --- a/yarn.lock +++ b/yarn.lock @@ -21031,12 +21031,12 @@ __metadata: languageName: node linkType: hard -"markdown-to-jsx@npm:^7.1.7": - version: 7.1.7 - resolution: "markdown-to-jsx@npm:7.1.7" +"markdown-to-jsx@npm:^7.1.9": + version: 7.1.9 + resolution: "markdown-to-jsx@npm:7.1.9" peerDependencies: react: ">= 0.14.0" - checksum: b2c0ea7d0988fad0c709989b3b1b3a5600d1e80b60266f9618386f7afead4a6b5eba9ee1a3943df6a3dcb1599ea89e58467d1b17b6dd3af3c60984c60a85d06d + checksum: 81ab9bd0ad93d4e90c39a67a4df2cc2d3b24579f8f018852f05abce442b246cee9cd705ea9d01304144729a48c972b8b535d40a33e04a0a05d5073958e96ae76 languageName: node linkType: hard @@ -26297,7 +26297,7 @@ __metadata: i18next-parser: ^7.0.3 iframe-resizer: ^4.3.2 isbot: ^3.6.5 - markdown-to-jsx: ^7.1.7 + markdown-to-jsx: ^7.1.9 modele-social: "workspace:^" netlify-cli: ^12.2.8 publicodes: ^1.0.0-beta.65