St.markdown - Remove the term "footnotes" in the rendering

I use st.markdown in a text where there are footnotes [1], [^2] in the text and the following conclusive part:
Sources:

The rendering with st.markdown displays the term “footnotes” in font characters. I would like to remove the term “footnotes” in the rendering.
How is that possible?

As we witness the unfolding of these technological marvels, it’s clear that the future is not just a distant dream but a present reality. Startups are at the forefront, pushing boundaries and redefining what’s possible. Stay tuned for our next edition, where we’ll continue to explore the tech landscape and the visionaries who are driving progress.

Sources:

Footnotes

  1. 4 Innovative Startup Opportunities In Media :leftwards_arrow_with_hook: :leftwards_arrow_with_hook:2 :leftwards_arrow_with_hook:3 :leftwards_arrow_with_hook:4 :leftwards_arrow_with_hook:5 :leftwards_arrow_with_hook:6 :leftwards_arrow_with_hook:7

  1. [Document Name] (URL) ↩︎

Could you please post a minimal piece of the code you’re trying to get help with?

Thanks,

st.markdown(text)

in the text there is reference to [1] or to [2].

Sources:

A terme footnotes appear in the rendering

Sources:

Footnotes

  1. 4 Innovative Startup Opportunities In Media

  1. … ↩︎

  2. … ↩︎

You can hide it with CSS, as the footnotes text has the id “footnotes” – see this example:

import streamlit as st

st.markdown(
    """
Here's a simple footnote,[^1] and here's a longer one.[^bignote]

[^1]: This is the first footnote.

[^bignote]: Here's one with multiple paragraphs and code.

    Indent paragraphs to include them in the footnote.

    `{ my code }`

    Add as many paragraphs as you like.
"""
)

st.markdown(
    """
Here's a simple footnote,[^1]

[^1]: This is the first footnote.
"""
)

st.markdown(
    """
    <style>
    #footnotes {
        display: none
    }
    </style>
    """,
    unsafe_allow_html=True,
)
1 Like

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