Function signature[source] | |
---|---|
st.markdown(body, unsafe_allow_html=False, *, help=None) | |
Parameters | |
body (str) | The string to display as Github-flavored Markdown. Syntax information can be found at: https://github.github.com/gfm. This also supports:
|
unsafe_allow_html (bool) | By default, any HTML tags found in the body will be escaped and therefore treated as pure text. This behavior may be turned off by setting this argument to True. That said, we strongly advise against it. It is hard to write secure HTML, so by using this argument you may be compromising your users' security. For more information, see: |
help (str) | An optional tooltip that gets displayed next to the Markdown. |
Examples
import streamlit as st st.markdown('Streamlit is **_really_ cool**.') st.markdown("This text is :red[colored red], and this is **:blue[colored]** and bold.") st.markdown(":green[$\sqrt{x^2+y^2}=1$] is a Pythagorean identity. :pencil:")
