Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| def ltr_tag(tag): | |
| style = """ | |
| { | |
| unicode-bidi:bidi-override; | |
| direction: RTL; | |
| } | |
| """ | |
| st.markdown( | |
| f""" | |
| <style> | |
| {tag}, .rtl {style} | |
| </style> | |
| """, | |
| unsafe_allow_html=True, | |
| ) | |
| def display_rtl(html): | |
| """Render an RTL container with the provided HTML string""" | |
| st.markdown( | |
| f""" | |
| <div dir="rtl" lang="he"> | |
| {html} | |
| </div> | |
| """, | |
| unsafe_allow_html=True, | |
| ) | |