From f1cb4ed560c88ec19725c901228587104efa0a63 Mon Sep 17 00:00:00 2001 From: Balthasar Hofer Date: Mon, 29 Apr 2024 19:35:52 +0200 Subject: [PATCH] docs: make `ThemedImage` example work out of the box (#10085) --- .../docs/guides/markdown-features/markdown-features-assets.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/guides/markdown-features/markdown-features-assets.mdx b/website/docs/guides/markdown-features/markdown-features-assets.mdx index dfd3a96a51..fa75c8f676 100644 --- a/website/docs/guides/markdown-features/markdown-features-assets.mdx +++ b/website/docs/guides/markdown-features/markdown-features-assets.mdx @@ -161,6 +161,7 @@ import DocusaurusSvg from './docusaurus.svg'; Docusaurus supports themed images: the `ThemedImage` component (included in the themes) allows you to switch the image source based on the current theme. ```jsx +import useBaseUrl from '@docusaurus/useBaseUrl'; import ThemedImage from '@theme/ThemedImage';