diff --git a/.storkit/work/1_backlog/427_story_server_side_text_normalization_for_chat_message_line_breaks.md b/.storkit/work/1_backlog/427_story_server_side_text_normalization_for_chat_message_line_breaks.md new file mode 100644 index 00000000..dc2751d2 --- /dev/null +++ b/.storkit/work/1_backlog/427_story_server_side_text_normalization_for_chat_message_line_breaks.md @@ -0,0 +1,20 @@ +--- +name: "Server-side text normalization for chat message line breaks" +--- + +# Story 427: Server-side text normalization for chat message line breaks + +## User Story + +As a user reading bot messages in Matrix, I want single newlines between sentences to render correctly, so that messages don't show up with words joined together like "sentence one.Sentence two". + +## Acceptance Criteria + +- [ ] Add a text normalization step before markdown-to-HTML conversion in the Matrix transport that converts single newlines between non-empty prose lines into double newlines +- [ ] Preserve intentional single-newline formatting in bullet lists, headings, table rows, and code fences +- [ ] Apply the same normalization in WhatsApp and Slack transports +- [ ] Unit tests covering prose paragraphs, bullet lists, code blocks, and mixed content + +## Out of Scope + +- TBD