chainlit
chainlit copied to clipboard
FEAT : Disabling markdown/latex rendering for user_messages
Description:
Currently, Chainlit automatically renders Markdown and LaTeX syntax in user messages.
While this is beneficial in many scenarios, there are cases where such rendering is undesirable.
For instance, when user input includes characters like # or $ that are intended as literals rather than Markdown or LaTeX syntax, automatic rendering can lead to misinterpretation of the message content.
Proposed Solution:
Introduce a configuration option in Chainlit's config.toml file that allows developers to enable or disable Markdown and LaTeX rendering specifically for user messages.
This would provide greater control over how user inputs are processed and displayed.
References:
-
Related issue discussing unintended Markdown rendering when user messages start with
#:
https://github.com/Chainlit/chainlit/issues/1951 -
Current documentation on
latexfeature config:
https://docs.chainlit.io/backend/config/features
Additional Context:
Implementing this feature would enhance the flexibility of Chainlit in handling diverse user inputs, ensuring that messages are displayed as intended without unintended formatting.