WIP MardownToReact

This commit is contained in:
Marcus Blättermann 2022-11-17 18:19:12 +01:00
parent 39fd5f38b0
commit 8b7b1670ee
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -5,7 +5,7 @@ import classNames from 'classnames'
import Link from './link' import Link from './link'
import Button from './button' import Button from './button'
import { InlineCode } from './code' import { InlineCode } from './code'
import { markdownToReact } from './util' import { MarkdownToReact } from './util'
import * as classes from '../styles/embed.module.sass' import * as classes from '../styles/embed.module.sass'
@ -92,7 +92,7 @@ const Image = ({ src, alt, title, ...props }) => {
</Link> </Link>
{title && ( {title && (
<figcaption className="gatsby-resp-image-figcaption"> <figcaption className="gatsby-resp-image-figcaption">
{markdownToReact(title, markdownComponents)} <MarkdownToReact markdown={title} />
</figcaption> </figcaption>
)} )}
</figure> </figure>