File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -162,14 +162,17 @@ export function Markdown(props: { content: string; className?: string }) {
162162 const image = node . children [ 0 ]
163163
164164 return (
165- // eslint-disable-next-line @next/next/no-img-element
166- < img
167- src = { image . properties . src }
168- width = { 250 }
169- height = { 250 }
170- className = "max-w-full h-auto align-middle border-none rounded-lg shadow-md hover:shadow-lg transition-shadow duration-300 ease-in-out mt-2 mb-2"
171- alt = { image . properties . alt }
172- />
165+ < >
166+ { /* eslint-disable-next-line @next/next/no-img-element */ }
167+ < img
168+ src = { image . properties . src }
169+ width = { 250 }
170+ height = { 250 }
171+ className = "max-w-full h-auto align-middle border-none rounded-lg shadow-md hover:shadow-lg transition-shadow duration-300 ease-in-out mt-2 mb-2"
172+ alt = { image . properties . alt }
173+ />
174+ < p > { paragraph . children . slice ( 1 ) } </ p >
175+ </ >
173176 )
174177 }
175178 return < p > { paragraph . children } </ p >
You can’t perform that action at this time.
0 commit comments