16 lines
509 B
Python
16 lines
509 B
Python
import mdformat
|
|
import streamlit as st
|
|
|
|
from demo_text import demo_text
|
|
|
|
|
|
def app_tab1():
|
|
def button1_callback():
|
|
st.session_state['markdown'] = mdformat.text(st.session_state['markdown'],
|
|
options={"number": True})
|
|
|
|
st.session_state['content'] = st.text_area(
|
|
"Entre ton texte ici. Les images sont dans ./images/", demo_text,
|
|
height=450,
|
|
key='markdown')
|
|
st.button("Formater le texte", on_click=button1_callback)
|