Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit03eeb01

Browse files
authored
chore: use new table design for markdown rendering (#17530)
resolves#17502 <img width="756" alt="Screenshot 2025-04-23 at 11 26 19"src="https://github.com/user-attachments/assets/667c595c-21de-496c-8f25-3dca9f840c7c"/>
1 parent3306f0f commit03eeb01

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

‎site/src/components/Markdown/Markdown.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
importtype{Interpolation,Theme}from"@emotion/react";
22
importLinkfrom"@mui/material/Link";
3-
importTablefrom"@mui/material/Table";
4-
importTableBodyfrom"@mui/material/TableBody";
5-
importTableCellfrom"@mui/material/TableCell";
6-
importTableContainerfrom"@mui/material/TableContainer";
7-
importTableHeadfrom"@mui/material/TableHead";
8-
importTableRowfrom"@mui/material/TableRow";
3+
import{
4+
Table,
5+
TableBody,
6+
TableCell,
7+
TableHeader,
8+
TableRow,
9+
}from"components/Table/Table";
910
importisEqualfrom"lodash/isEqual";
1011
import{typeFC,memo}from"react";
1112
importReactMarkdown,{typeOptions}from"react-markdown";
@@ -90,19 +91,15 @@ export const Markdown: FC<MarkdownProps> = (props) => {
9091
},
9192

9293
table:({ children})=>{
93-
return(
94-
<TableContainer>
95-
<Table>{children}</Table>
96-
</TableContainer>
97-
);
94+
return<Table>{children}</Table>;
9895
},
9996

10097
tr:({ children})=>{
10198
return<TableRow>{children}</TableRow>;
10299
},
103100

104101
thead:({ children})=>{
105-
return<TableHead>{children}</TableHead>;
102+
return<TableHeader>{children}</TableHeader>;
106103
},
107104

108105
tbody:({ children})=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp