You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have provided sufficient information below to help reproduce this issue.
Summary
When using Streamlit's color directives, combined with Markdown completion in st.write_stream, (streamdown:incomplete-link) is visible. Additionally, nested directives aren't completed correctly.
Reproducible Code Example
importstreamlitasstimporttimeoptions= {
"italic": "This is a *Foo bar and baz bat*",
"bold": "This is a **Foo bar and baz bat**",
"bold_italic": "This is a ***Foo bar and baz bat***",
"color": "This is a :red[Foo bar and baz bat]",
"highlight": "This is a :red-background[Foo bar and baz bat]",
"color_highlight": "This is a :red-background[:rainbow[Foo bar and baz bat]]",
"color_custom": "This is a :color[Foo bar and baz bat]{foreground='rgb(0, 100, 200)'}",
"small": "This is a :small[Foo bar and baz bat]"
}
x=st.selectbox("text", options.keys())
defgen():
fortokeninoptions[x].split(" "):
time.sleep(.5)
yieldtoken+" "st.write_stream(gen)
Steps To Reproduce
Run the app and try each option. Italic, bold, and bold-italic are fine by themselves, but the others have trailing artifacts and don't complete correctly when nested.
Checklist
Summary
When using Streamlit's color directives, combined with Markdown completion in
st.write_stream,(streamdown:incomplete-link)is visible. Additionally, nested directives aren't completed correctly.Reproducible Code Example
Steps To Reproduce
Run the app and try each option. Italic, bold, and bold-italic are fine by themselves, but the others have trailing artifacts and don't complete correctly when nested.
Expected Behavior
No response
Current Behavior
2026-03-22_22-53-38.mp4
Is this a regression?
Debug info
Additional Information
No response