Skip to content

〽️  Markdownlit

Submitted by Arnaud Miribel

Summary

markdownlit adds a set of lit Markdown commands for your Streamlit apps! Note you can now use colored text in markdown with native Streamlit, check out the docs!

Docstring

Visit the PyPI page for more information.

Examples

def example_link_and_colors():
    mdlit(
        """Tired from [default links](https://extras.streamlit.app)?
    Me too! Discover Markdownlit's `@()` operator. Just insert a link and it
    will figure a nice icon and label for you!
    Example: @(https://extras.streamlit.app)... better, right? You can
    also @(🍐)(manually set the label if you want)(https://extras.streamlit.app)
    btw, and play with a [red]beautiful[/red] [blue]set[/blue] [orange]of[/orange]
    [violet]colors[/violet]. Another perk is those beautiful arrows -> <-
    """
    )
Output (beta)

example_collapsible_content

def example_collapsible_content():
    mdlit(
        textwrap.dedent(
            """
    ??? Bonus
        @(🎁)(A very insightful tutorial)(https://www.youtube.com/watch?v=dQw4w9WgXcQ)
    """
        )
    )
Output (beta)