Akshayram1 commited on
Commit
aad87d2
·
verified ·
1 Parent(s): ddfac8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -46,10 +46,13 @@ with col2:
46
  if st.session_state.converted_text:
47
  copy_button(st.session_state.converted_text)
48
 
49
- # Optional: Add preview toggle
50
  with st.expander("Preview Original Markdown"):
51
  if md_input:
52
  st.markdown(md_input, unsafe_allow_html=True)
 
 
 
53
  else:
54
  st.write("No Markdown to preview")
55
 
@@ -59,5 +62,5 @@ st.sidebar.markdown("""
59
  1. Paste your Markdown in the left panel
60
  2. Click 'Convert'
61
  3. Use the 'Copy' button in the right panel
62
- 4. Toggle the preview to see original formatting
63
  """)
 
46
  if st.session_state.converted_text:
47
  copy_button(st.session_state.converted_text)
48
 
49
+ # Optional: Add preview toggle with copy button
50
  with st.expander("Preview Original Markdown"):
51
  if md_input:
52
  st.markdown(md_input, unsafe_allow_html=True)
53
+ # Add copy button for the preview
54
+ copy_button(md_input)
55
+ st.caption("Copy Preview Content")
56
  else:
57
  st.write("No Markdown to preview")
58
 
 
62
  1. Paste your Markdown in the left panel
63
  2. Click 'Convert'
64
  3. Use the 'Copy' button in the right panel
65
+ 4. Toggle the preview to see original formatting and copy if needed
66
  """)