We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c53ff6 commit 0859ee8Copy full SHA for 0859ee8
src/components/Figure/index.tsx
@@ -11,13 +11,13 @@ export interface FigureProps {
11
export default function Figure({ img, caption, externalLink }: FigureProps) {
12
13
const figcaption = externalLink
14
- ? <figcaption>{caption} (<a href={ externalLink } target="_blank" rel="noopener noreferrer">source</a>)</figcaption>
15
- : <figcaption>{caption}</figcaption>;
+ ? <figcaption><em>{caption} (<a href={ externalLink } target="_blank" rel="noopener noreferrer">source</a>)</em></figcaption>
+ : <figcaption><em>{caption}</em></figcaption>;
16
17
return (
18
<figure>
19
<Image img={img} alt={caption} />
20
- <em>{figcaption}</em>
+ {figcaption}
21
</figure>
22
)
23
}
0 commit comments