Skip to content

Commit

Permalink
Merge pull request #300 from dolthub/dependabot/npm_and_yarn/react-ma…
Browse files Browse the repository at this point in the history
…rkdown-10.0.0

build(deps): bump react-markdown from 9.0.3 to 10.0.0
  • Loading branch information
tbantle22 authored Mar 3, 2025
2 parents af2f61d + 084b2a0 commit 0a0cac0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"numeral": "^2.0.6",
"react-copy-to-clipboard": "^5.1.0",
"react-loader": "^2.4.7",
"react-markdown": "^9.0.3",
"react-markdown": "^10.0.0",
"react-select": "^5.8.3",
"react-tooltip": "^5.28.0",
"reactjs-popup": "^2.0.6",
Expand Down
26 changes: 11 additions & 15 deletions packages/components/src/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,18 @@ export default function Markdown({
data-cy={props["data-cy"]}
aria-label="markdown"
dir="auto"
className={cx({ [css.spaceAbove]: spaceAbove })}
className={cx(
"markdown-body",
css.preview,
{
[css.previewMaxHeight]: hasMaxHeight,
[css.previewBaseText]: baseTextSize,
[css.spaceAbove]: spaceAbove,
},
props.className,
)}
>
<ReactMarkdown
className={cx(
"markdown-body",
css.preview,
{
[css.previewMaxHeight]: hasMaxHeight,
[css.previewBaseText]: baseTextSize,
},
props.className,
)}
remarkPlugins={[remarkGfm]}
>
{props.value}
</ReactMarkdown>
<ReactMarkdown remarkPlugins={[remarkGfm]}>{props.value}</ReactMarkdown>
</div>
);
}
11 changes: 6 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2403,7 +2403,7 @@ __metadata:
react-copy-to-clipboard: "npm:^5.1.0"
react-dom: "npm:^18.3.1"
react-loader: "npm:^2.4.7"
react-markdown: "npm:^9.0.3"
react-markdown: "npm:^10.0.0"
react-select: "npm:^5.8.3"
react-select-event: "npm:^5.5.1"
react-tooltip: "npm:^5.28.0"
Expand Down Expand Up @@ -14396,11 +14396,12 @@ __metadata:
languageName: node
linkType: hard

"react-markdown@npm:^9.0.3":
version: 9.0.3
resolution: "react-markdown@npm:9.0.3"
"react-markdown@npm:^10.0.0":
version: 10.0.0
resolution: "react-markdown@npm:10.0.0"
dependencies:
"@types/hast": "npm:^3.0.0"
"@types/mdast": "npm:^4.0.0"
devlop: "npm:^1.0.0"
hast-util-to-jsx-runtime: "npm:^2.0.0"
html-url-attributes: "npm:^3.0.0"
Expand All @@ -14413,7 +14414,7 @@ __metadata:
peerDependencies:
"@types/react": ">=18"
react: ">=18"
checksum: 7f1aef171b49af9b84896917c033cbc0f45d0d2b4a5db5a339bf96977a143ae19f21cb7a69a6878b718d5578db021e96372fa33621b79bf57a87efb9b3c84166
checksum: 9846efb451f5c9a47371458c81117c03bc75d51e11917a8ae2a43b3902624aa29534124edd635b81f421111ab4c7978a904ad49199d010d2bbd50c42674eeae6
languageName: node
linkType: hard

Expand Down

0 comments on commit 0a0cac0

Please sign in to comment.