Spaces:
Running
Running
File size: 452 Bytes
1165618 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
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,
)
|