Skip to content

Commit 167f442

Browse files
committed
fix: fix markdown embed image issue
1 parent 9703021 commit 167f442

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/src/common/Markdown.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const Markdown = ({
1111
}) => (
1212
<ReactMarkdown
1313
components={{img: ({...props}) => <img onLoad={onImageLoaded} {...props} />}}
14-
remarkPlugins={[gfm]}>
14+
remarkPlugins={[gfm]}
15+
urlTransform={(value: string) => value}>
1516
{children}
1617
</ReactMarkdown>
1718
);

0 commit comments

Comments
 (0)