Skip to content

Commit 91f8b42

Browse files
[Docs Site] Bump react-markdown from 9.0.3 to 10.0.1 (#20498)
* [Docs Site] Bump react-markdown from 9.0.3 to 10.0.1 Bumps [react-markdown](https://github.com/remarkjs/react-markdown) from 9.0.3 to 10.0.1. - [Release notes](https://github.com/remarkjs/react-markdown/releases) - [Changelog](https://github.com/remarkjs/react-markdown/blob/main/changelog.md) - [Commits](remarkjs/react-markdown@9.0.3...10.0.1) --- updated-dependencies: - dependency-name: react-markdown dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix error --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kian Newman-Hazel <[email protected]>
1 parent 935b036 commit 91f8b42

File tree

4 files changed

+16
-20
lines changed

4 files changed

+16
-20
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"react": "19.0.0",
8888
"react-dom": "19.0.0",
8989
"react-icons": "5.5.0",
90-
"react-markdown": "9.0.3",
90+
"react-markdown": "10.0.1",
9191
"redirects-in-workers": "0.0.5",
9292
"rehype": "13.0.2",
9393
"rehype-autolink-headings": "7.1.0",

src/components/FieldCatalog.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,11 @@ const FieldCatalog = ({ fields }: { fields: Fields }) => {
142142
{field.name}
143143
</span>
144144
</div>
145-
<Markdown
146-
className="!mt-2 line-clamp-2 text-sm leading-6"
147-
disallowedElements={["a"]}
148-
unwrapDisallowed={true}
149-
>
150-
{field.summary}
151-
</Markdown>
152-
145+
<div className="!mt-2 line-clamp-2 text-sm leading-6">
146+
<Markdown disallowedElements={["a"]} unwrapDisallowed={true}>
147+
{field.summary}
148+
</Markdown>
149+
</div>
153150
{field.plan_info_label && (
154151
<div className="!mt-2 text-xs">
155152
<FieldBadges badges={[field.plan_info_label]} />

src/components/LearningPathCatalog.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,11 @@ const LearningPathCatalog = ({
167167
{path.video && <span className="sl-badge tip">Video</span>}
168168
</div>
169169
<p className="!mt-3 font-semibold">{path.title}</p>
170-
<Markdown
171-
className="leading-2 !mt-1 text-sm"
172-
disallowedElements={["a"]}
173-
unwrapDisallowed={true}
174-
>
175-
{path.description}
176-
</Markdown>
170+
<div className="leading-2 !mt-1 text-sm">
171+
<Markdown disallowedElements={["a"]} unwrapDisallowed={true}>
172+
{path.description}
173+
</Markdown>
174+
</div>
177175
</a>
178176
);
179177
})}

0 commit comments

Comments
 (0)