-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Allow ignoring markdown rendering in st.markdown
, st.info
, st.warning
,...
#8546
Comments
Hey! This behavior is partially intended. Surrounding words with "_" will turn them into italics which will in turn remove the surrounding underscores. |
@kilpert Thanks for reporting this issue. I reproduced this here. It's expected that this happens since all these commands render the text as markdown. |
st.write
, st.info
, st.warning
,...
st.write
, st.info
, st.warning
,...st.markdown
, st.info
, st.warning
,...
You are completely right. I forgot about the markdown. Never really use italic. This is a better way to output error messages:
|
Since this is not a bug, we should close this. |
If you would like to reopen this / make a new issue to allow an option to deactivate markdown rendering I could try to work on this feature. Would I be able to get assigned this @LukasMasuch ? |
Checklist
Summary
The output in st.write, st.warning, and st.error is altered (crippled). In my code example, some "_" are deleted from an error message.
Reproducible Code Example
Steps To Reproduce
Expected Behavior
The output text should be the same as in the variable. No characters should be missing.
Current Behavior
In my example, some "_" are gone, which is bad, e.g. when you want to output the exact regex error message.
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: