chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Inconsistent extra blank spaces in markdown rendering

Open 19Naveen opened this issue 2 months ago • 5 comments
trafficstars

Description: When generating chatbot responses in Chainlit, extra blank spaces appear inconsistently between list items and after headings.

  • The raw LLM output is correct (verified in other markdown renderers).
  • Issue occurs intermittently, not always reproducible.
  • Thought Removing bold syntax (**Text**:) may causes it does not resolve the problem.

Steps to Reproduce:

  1. Generate a response with lists, headings, and bold text.
  2. Observe random blank spaces introduced in the rendered output.

Expected Behavior: Markdown should render consistently without extra blank lines.

Actual Behavior: Random blank spaces appear, making formatting unreliable.

Environment:

  • Chainlit version: 2.7.2
  • Browser: FireFox/Brave

Both Images are taken from the same Thread same prompt and Format: Image

Image

19Naveen avatar Sep 10 '25 17:09 19Naveen