How to wrap long text with triggering Latex?

I have long text that I want to render. Text API creates a scrolling navigation, but I want to wrap the text. Write or Markdown APIs trigger Latex which I don’t want because my app generates text with $, which messes up the rendering.

Try escaping the dollar sign:

Code
import streamlit as st

text_with_dollars = "πŸ’Έ I have $1.00 but I want $2.00 "*20

with st.echo():
    st.write(text_with_dollars)

with st.echo():
    st.write(text_with_dollars.replace("$","\$"))
4 Likes

Thanks! I guess just gotta hack it like that :smiley: Working now

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.