-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
"remark-gfm": "^3.0.1",
Steps to reproduce
<ReactMarkdown remarkPlugins={[RemarkBreaks, plugins.RemarkMath]} rehypePlugins={[ ...rehypePlugins, rehypeHighlight, plugins.RehypeKatex, [ plugins.RehypeHighlight, { detect: false, ignoreMissing: true, }, ], ]} components={{ ...artifactComponents, a: (args) => LinkElement.Component(args, props?.sources || []), img: MarkdownImage, mark: HighlightComponent, del: StrikethroughComponent, }} linkTarget={'_blank'} > {parsedContent} </ReactMarkdown>
Actual behavior
When remarkGfm is present, output images from MCPCallElement cannot be displayed due to URL corruption. (See image below). But we need remarkGfm to render markdown tables.
refly-ai/refly#1142
Expected behavior
When remarkGfm is present, output images from MCPCallElement cannot be displayed due to URL corruption. (See image below). But we need remarkGfm to render markdown tables.refly-ai/refly#1142
Runtime
node -v # v20.19.0
Package manager
pnpm -v # 9.15.9
Operating system
macos
Build and bundle tools
No response