Shun Miyazawa 3 лет назад
Родитель
Сommit
a740883a84
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/app/src/components/ReactMarkdownComponents/Table.tsx

+ 2 - 1
packages/app/src/components/ReactMarkdownComponents/Table.tsx

@@ -3,6 +3,7 @@ import React from 'react';
 type TableProps = {
   children: React.ReactNode,
   className?: string
+  'data-line': number
 }
 
 export const Table = React.memo((props: TableProps): JSX.Element => {
@@ -10,7 +11,7 @@ export const Table = React.memo((props: TableProps): JSX.Element => {
   const { children, className } = props;
 
   return (
-    <table className={`${className}`}>
+    <table className={`${className}`} data-line={props['data-line']}>
       {children}
     </table>
   );