markdownlit

0.0.7 · active · verified Thu Apr 16

markdownlit is a Python library that enhances Streamlit's native Markdown capabilities by introducing 'lit' features such as magic links, colored text, collapsible content, and improved arrow/dash rendering. Built upon the `Python-Markdown` project, it is currently at version 0.0.7 and is actively maintained, though releases follow an irregular cadence.

Common errors

Warnings

Install

Imports

Quickstart

To use `markdownlit`, import `mdlit` and use it as a drop-in replacement for `st.markdown()` to access its enhanced features like magic links, colored text, and custom arrows.

import streamlit as st
from markdownlit import mdlit

st.set_page_config(layout="centered")
st.header("markdownlit Demo")

mdlit("You should definitely check out @(https://streamlit.io/) for building awesome apps!")
mdlit("Here is some [red]colored[/red] text and a [blue]magic link[/blue] to @(twitter.com/arnaudmiribel).")
mdlit("Is this cool -> right? And what about <- this?!")

view raw JSON →