Skip to content

RemarkGfm display mcp url #78

@eleliauk

Description

@eleliauk

Initial checklist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions