I am using markdown and try to color words like it says in the streamlit documentation but it won't work, any can help me please?
import streamlit as st
st.markdown("Text can be :blue[azul], but also :orange[laranja]. And of course it can be
:red[red]. And :green[verde]. And look at this :violet[violeta]!")
it is all black.
Thanks
Ensure that have streamlit updated (1.16.0) and try:
st.markdown("This text is :red[colored red], and this is **:blue[colored]** and bold.")
st.markdown( 'This will print <span style="color:blue;"> blue text </span>', unsafe_allow_html=True )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.