Skip to content

Commit 03b1301

Browse files
committed
chore(website): Add word-break to headings for markdown pages
1 parent 7cd7b8c commit 03b1301

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/documentation/src/components/Markdown/renderers.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.heading {
2+
word-break: break-word;
3+
}
4+
15
.task {
26
list-style: none;
37
margin-left: -2.5rem;

packages/documentation/src/components/Markdown/renderers.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ export const renderers: MarkdownRenderers = {
8080

8181
const id = useSluggedId(tokens);
8282
return (
83-
<Typography id={id} type={type} suppressHydrationWarning>
83+
<Typography
84+
id={id}
85+
type={type}
86+
className={styles.heading}
87+
suppressHydrationWarning
88+
>
8489
{children}
8590
</Typography>
8691
);

0 commit comments

Comments
 (0)