Yoad
Add manual Entry mode
1165618
raw
history blame contribute delete
452 Bytes
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,
)