-
Are you running your app locally or is it deployed?
Local. -
Share the link to your app’s public GitHub repository (including a [requirements file]
Not public. -
Share the full text of the error message (not a screenshot).
No error, the markdown is just not parsed on the frontend. -
Share the Streamlit and Python versions.
Python: 3.11.1
streamlit: 1.29.0
Hi @oxydron
It would be helpful to share a code snippet that reproduces the issue mentioned along with a schematic detailing the intended output on how the markdown text should be displayed in-app.
Thanks!
def format_label(label: str) -> str:
d = {'a': 'red', 'b': 'blue', 'c': 'green'}
color = d[label]
return f":{color}[{label}]"
disclaimer_selected = st.multiselect(
"example", ['a', 'b', 'c'], placeholder='choose options',
format_func=format_label
)
On documentation said that was possible to render markdown
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.