HTML tags inside <code> get corrupted since v1.5.0 #4534
Labels
feature:st.code
feature:st.markdown
priority:P3
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Summary
Nesting an HTML tag inside a
<code>
tag results in,[object Object],
being displayed.Steps to reproduce
Code snippet:
output:
whereas the correct behavior should output
test hello
with "test" in red.Is this a regression?
Yep. The bug was introduced in version 1.5.0 (version 1.4.0 works correctly)
Debug info
Additional information
This is what streamlit actually returns to the browser for display. I guess that it has something to do with the react-markdown update that was done between 1.4.0 and 1.5.0.
The text was updated successfully, but these errors were encountered: