A Streamlit component to display markdown, which supports table, code switch, LaTeX, mermaid, and more.
Project description
streamlit-markdown
react-markdown for streamlit webapp
- streaming rendering of markdown text
- support for latex math
- support for mermaid diagrams
- support for code highlighting
- support for tables
- support for images
- support for links
Installation
pip install streamlit-markdown
Usage
from streamlit_markdown import st_markdown
markdown_text = "$ y = f(x)$"
st_markdown(markdown_text)
run example:
streamlit run example.py
Buiding from source
Prerequisites
- nodejs >= 18.x
- yarn >= 1.22.x
- poetry >= 1.2.x
- python >= 3.8.x
Building
./build.sh
Publishing
poetry publish
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit_markdown-1.0.0.tar.gz
(35.2 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_markdown-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a046f69fc747860ec6107a63a8228dff674dc1c6ed13b73854061a85e1149ff7 |
|
MD5 | b0c2dbfedb1cf2c531c345c0e4632b87 |
|
BLAKE2b-256 | fe87de8ce828ef0f2581063b97a67678f2ab6adcfdf41e1e35c282eb47b2b808 |