Giter Site home page Giter Site logo

streamlit-web-app-python's Introduction

streamlit.markdown(body: str, unsafe_allow_html: bool = False) -> 'DeltaGenerator' Display string formatted as Markdown.

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:

* Emoji shortcodes, such as ``:+1:``  and ``:sunglasses:``.
  For a list of all supported codes,
  see https://share.streamlit.io/streamlit/emoji-shortcodes.

* LaTeX expressions, by wrapping them in "$" or "$$" (the "$$"
  must be on their own lines). Supported LaTeX functions are listed
  at https://katex.org/docs/supported.html.

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:

https://github.com/streamlit/streamlit/issues/152

*Also note that ``unsafe_allow_html`` is a temporary measure and may
be removed from Streamlit at any time.*

If you decide to turn on HTML anyway, we ask you to please tell us
your exact use case here:

https://discuss.streamlit.io/t/96

This will help us come up with safe APIs that allow you to do what
you want.

Example

st.markdown('Streamlit is really cool.')

streamlit-web-app-python's People

Contributors

rituraj421 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.