ARTICLE AD BOX
Problem makes $ but if you use \$ then it looks OK.
So you may try to add .replace('$', r'\$')
Problem is because $ in markdown can be used for math and latex.
Minimal working code for tests:
Because \ can create special codes - like \f for formfeed - so I use r"" for raw text.
# streamlit run main.py import streamlit as st st.title("Minimal Markdown Example") st.markdown(r"$a^2 + b^2 = c^2$") st.markdown(r"$\sum_{x=0}^{\infty} \frac{1}{x^2}$") st.markdown( """ **Stellar Bank** requested a finance vertical campaign focused on **in‑view rate** with a budget of **$80,000**. We evaluated **50** benchmark products, of which **10** matched the finance vertical. One product was excluded for exceeding the budget, leaving **9** eligible products. After vertical and budget filtering, only **Vortex AR** was selected because it optimizes the in‑view rate, fits within the total budget (minimum $75,000) and was the highest‑ranked product. The selected budget is **$75,000**, leaving **$5,000** unspent. The other finance products (Aurora Story, Echo Shoppable, Lumen Expandable, Orbit Carousel, Nebula Banner, Zenith Interstitial, Pulse Playable, Nimbus Native) were not selected because higher‑ranked selections consumed the available budget """.replace("$", r"\$") )Result:
Without .replace("$", r"\$")



