Allow developers to disable extensions to standard markdown

Open
#7,638 5 comments 26 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, streamlit
Domain
api, frontend

Research direction

The request centers on the st.markdown function and its use through st.write; start by tracing how those entry points process Markdown extensions. Define kwargs behavior that lets developers disable emoji shortcodes, LaTeX expressions, and colored text while retaining standard Markdown, then verify the resulting rendering.

Written by the indexing model from the issue text.

Description

feature:markdown type:enhancement
Checklist
  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.
Summary

By default, we have some extensions to standard markdown enabled by default when developers use
the st.markdown function (thus when they call st.write on a string) that do things such as support
emoji shortcodes, allow LaTeX expressions, and support colored text. While these features are
useful, they do occasionally cause confusion for people that aren't expecting non-standard markdown
and can also be inconvenient when trying to render unformatted text. It'd be nice if we could support
st.markdown kwargs that allow users to disable these features.

Additional Context

See https://github.com/streamlit/streamlit/issues/7623

Dominant language
Python
Stars
45.8k
Forks
4.4k
Avg merge
21h 22m
Merged PRs (30d)
316

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from streamlit/streamlit

All issues in streamlit/streamlit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.