File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,15 @@ export default function markdownComponents({
30
30
ClassAttributes < HTMLHeadingElement > & HTMLAttributes < HTMLHeadingElement > & ExtraProps
31
31
> = ( props ) => {
32
32
const { children, id, className } = props ;
33
+ const { node, ...componentProps } = props ;
33
34
switch ( tag ) {
34
35
case "table" :
35
36
case "input" :
36
37
case "hr" :
37
38
case "img" :
38
39
return (
39
40
< MotionComponent
40
- { ...props }
41
+ { ...componentProps }
41
42
key = { `${ tag } -${ id } ` }
42
43
variants = { className ? undefined : sentenceVariants }
43
44
onAnimationComplete = { onCharacterAnimationComplete }
@@ -48,7 +49,7 @@ export default function markdownComponents({
48
49
case "tr" :
49
50
case "th" :
50
51
case "td" :
51
- return < MotionComponent { ...props } > { children } </ MotionComponent > ;
52
+ return < MotionComponent { ...componentProps } > { children } </ MotionComponent > ;
52
53
case "p" :
53
54
return (
54
55
< TypewriterItem
@@ -80,7 +81,7 @@ export default function markdownComponents({
80
81
dadElement = { ( children ) => {
81
82
if ( Array . isArray ( children ) ) {
82
83
return (
83
- < MotionComponent { ...props } key = { `${ tag } -${ id } ` } children = { children } />
84
+ < MotionComponent { ...componentProps } key = { `${ tag } -${ id } ` } children = { children } />
84
85
) ;
85
86
}
86
87
return children ;
@@ -97,7 +98,7 @@ export default function markdownComponents({
97
98
dadElement = { ( children , isString ) => {
98
99
return (
99
100
< MotionComponent
100
- { ...props }
101
+ { ...componentProps }
101
102
key = { `${ tag } -${ id } ` }
102
103
variants = { isString || className ? undefined : sentenceVariants }
103
104
>
You can’t perform that action at this time.
0 commit comments