Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,9 @@ from markdown import markdown
|
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
import streamlit.components.v1 as components
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
def md_to_text(md_text):
|
| 7 |
html = markdown(md_text)
|
| 8 |
soup = BeautifulSoup(html, features='html.parser')
|
|
@@ -37,7 +40,8 @@ if st.button("Convert"):
|
|
| 37 |
# Display results
|
| 38 |
with col2:
|
| 39 |
if 'converted_text' in st.session_state:
|
| 40 |
-
|
|
|
|
| 41 |
value=st.session_state.converted_text,
|
| 42 |
height=300,
|
| 43 |
key="output_area")
|
|
|
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
import streamlit.components.v1 as components
|
| 5 |
|
| 6 |
+
# Set page config for light theme
|
| 7 |
+
st.set_page_config(page_title="Markdown Converter", layout="wide", initial_sidebar_state="expanded", page_icon="📝", theme="light")
|
| 8 |
+
|
| 9 |
def md_to_text(md_text):
|
| 10 |
html = markdown(md_text)
|
| 11 |
soup = BeautifulSoup(html, features='html.parser')
|
|
|
|
| 40 |
# Display results
|
| 41 |
with col2:
|
| 42 |
if 'converted_text' in st.session_state:
|
| 43 |
+
# Removed the "Plain Text Output" label
|
| 44 |
+
st.text_area("",
|
| 45 |
value=st.session_state.converted_text,
|
| 46 |
height=300,
|
| 47 |
key="output_area")
|