I’ve looked at a few questions/answers regarding newline and numbering text but I cant seem to get it working.
I have this function for the text formatting:
def lets_begin_markdown( text):
styling = "padding-left:100px; " if padding else ""
styling += "border: 1px solid;"
html = f"""
<style>
[data-testid="stMarkdownContainer"] ul {{
list-style-position: inside;
}}
</style>
<div style='{styling} font-size: 30px;'>{text}</div>
"""
return st.markdown(html, unsafe_allow_html=True)
but when I call the function I don’t see my other formattni, ie. the padding, or the border or the font size… i only see the list style… which is good but not what i expected.
text_to_begin ="""
The following list won't indent no matter what I try:
1. Item 1
2. Item 2
3. Item 3
"""
lets_begin_markdown(text_to_begin)
It looks like the picture i’ve attached.