St.multiselect label doesn't work with markdown, doesn't parse

  1. Are you running your app locally or is it deployed?

  2. Share the link to your appโ€™s public GitHub repository (including a [requirements file]
    Not public.

  3. Share the full text of the error message (not a screenshot).
    No error, the markdown is just not parsed on the frontend.

  4. 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.


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',

On documentation said that was possible to render markdown