chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

FEAT : Disabling markdown/latex rendering for user_messages

Open dominpm opened this issue 7 months ago • 4 comments
trafficstars

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:

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.

dominpm avatar Apr 10 '25 08:04 dominpm