-
Notifications
You must be signed in to change notification settings - Fork 482
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
Link to markdown title with special characters #955
Comments
This is a great suggest, thanks! |
An alternative take: this should be an enhancement/feature request about anchors for streamlit/streamlit , not a workaround we should document. |
@snehankekre Do you want me to open an issue on streamlit ? |
That would be great! Thanks, @hoorelbeke-jimmy |
Until it gets changed in OS, I can at least make a mention about the behavior. There is some other work to provide general advice on using links within Streamlit (what opens a new tab, anti-patterns that reset Session State, etc.) So when that goes together, this is an easy footnote until there is some change in the library. Good call registering it as a feature request, though. 👍🏻 |
I opened a feature request here streamlit/streamlit#8114 |
Problem
I am displaying with streamlit some content, and I would like to display some links to markdown titles present on the streamlit page. For instance, the following is working:
When I click on link, I return to the beginning of the section Introduction. However, this doesn't work when I use special characters in my title, for instance:
To better understand the issue, I clicked on the anchor link on the left of the title "# Présentation", and I see on the URL that the link is "78e1d857" (for "# Introduction" it was "introduction").
My goal would be to be able to generate a link to the section "# Présentation" within my streamlit page, and for this I need to understand why the anchor link is "78e1d857". I tried to reverse engineer how to get this link based on the title content by looking at GitHub Flavored markdown, but I didn't find a way to do so.
Solution
MVP: A section in streamlit's documentation on how to do so would solve my issue.
Possible additions: A method in the streamlit package that returns the anchor link based on a makdown title would be even better
The text was updated successfully, but these errors were encountered: