-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
ronald-das and krankos
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working