Anchor link does not work with japanese header title

Ask the community or our support engineers for answers to questions.

This code works well.

st.header("Section")
st.markdown("[Section](#section)", unsafe_allow_html=True)

But this code does not work.

st.header("セクション")
st.markdown("[セクション](#section)", unsafe_allow_html=True)

Perhaps the cause is this.
I found that a header has no link when it’s text is japanese.

st.header("Section")

This has link.

st.header("セクション")

This has no link.

Hi @zheldwjstjf, welcome to the community! :wave:

I was able to reproduce this behavior and it looks like a bug to me. Could you submit a bug report in the Streamlit repo to bring this issue to the attention of our engineers?

Thank you!

1 Like

Hi @snehankekre
Thank you for your comment and suggestion.
I submitted bug report about above issue.

https://github.com/streamlit/streamlit/issues/5291

Best,
Jack

1 Like

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