chainlit
chainlit copied to clipboard
Inconsistent extra blank spaces in markdown rendering
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:
- Generate a response with lists, headings, and bold text.
- 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: