Skip to content

Incomplete links render as blocked #156

@lexanth

Description

@lexanth

Bug Description

Incomplete links get rendered as a link with the URL "streamdown:incomplete-link".
hardened-react-markdown renders this as a blocked link, regardless of allow options.
There is no way to bypass hardened-react-markdown here.

Steps to Reproduce

    <Streamdown>This is an [uncompleted</Streamdown>

Expected Behavior

<p>This is an <a class="wrap-anywhere font-medium text-primary underline" data-incomplete="true" data-streamdown="link" href="streamdown:incomplete-link" rel="noopener noreferrer" target="_blank" node="[object Object]">uncompleted</a></p>

Renders as "This is an uncompleted "

Actual Behavior

<p>This is an <span class="text-gray-500" title="Blocked URL: ">uncompleted [blocked]</span></p>

Renders as "This is an uncompleted [blocked]"

Code Sample

Streamdown Version

1.3.0

React Version

18

Node.js Version

No response

Browser(s)

No response

Operating System

None

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions