mirror of
https://github.com/zen-browser/docs.git
synced 2025-07-07 17:05:34 +02:00
Merge pull request #162 from list-jonas/main
Fixed broken images in documentation
This commit is contained in:
commit
2f4f30a05a
2 changed files with 2 additions and 4 deletions
Binary file not shown.
Before Width: | Height: | Size: 951 KiB After Width: | Height: | Size: 719 KiB |
|
@ -29,10 +29,8 @@ export default async function Page(props: {
|
||||||
components={{
|
components={{
|
||||||
...defaultMdxComponents,
|
...defaultMdxComponents,
|
||||||
a: createRelativeLink(source, page),
|
a: createRelativeLink(source, page),
|
||||||
img: (props: React.ImgHTMLAttributes<HTMLImageElement>) => {
|
img: (props) => {
|
||||||
const { src, ...rest } = props;
|
return <ImageZoom {...props} />;
|
||||||
if (typeof src !== "string") return null;
|
|
||||||
return <ImageZoom src={src} {...rest} />;
|
|
||||||
},
|
},
|
||||||
pre: (props) => (
|
pre: (props) => (
|
||||||
<CodeBlock {...props}>
|
<CodeBlock {...props}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue