Spaces:
Running
Running
File size: 584 Bytes
7aa8120 e832896 7aa8120 e832896 7aa8120 e832896 7aa8120 e832896 7aa8120 e832896 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import streamlit as st
# Set the page title
st.set_page_config(page_title="Markdown Renderer", page_icon="📝")
# Add a title to the app
st.title("Markdown Renderer")
# Create a text area for markdown input
markdown_input = st.text_area(
"Enter your Markdown text here:",
height=300,
placeholder="# Hello World\n\nThis is **bold** and this is *italic*.\n\n- Item 1\n- Item 2\n- Item 3"
)
# Add a divider
st.divider()
# Render the markdown
if markdown_input:
st.markdown(markdown_input)
else:
st.info("Enter some Markdown text above to see it rendered here.") |