New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown should render titles and headings with <a> tags to allow in-page links #824
Comments
per @tvst:
|
Is anyone working on this? I would love to contribute. |
Hi @nishnash54, apologies for the late reply -- If you're interested in contributing on this feature, you can email me directly at naomi@streamlit.io -- we've been adjusting our policies in terms of coordinating community contributions, especially as our team has been growing quickly, plus an unexpected pandemic. :) |
Clarifications per @treuille
|
Problem
It should be possible to make in-page links so that the app user can click on a title (e.g. within a Table of Contents) to reach the labeled part of the app quickly.
godot63 on the streamlit forum writes:
Links to look at:
Solution
MVP: The easiest thing is just to give every Markdown title and heading an automatic
<a href="#title">
when it is rendered as HTML in React.Possible enhancement: As an alternate or additional solution, it might be nice for users to have something like
st.label("station-info")
to create<a href="#station-info">
when the app is rendered. Then you could create in-page links without also needing to write a title or heading to the screen.Additional context
https://discuss.streamlit.io/t/links-to-same-document-in-md-document/1265
The text was updated successfully, but these errors were encountered: