Skip to content

Fix word wrapping for ReactMarkdown#13

Open
inoue22 wants to merge 1 commit intoaws-samples:mainfrom
inoue22:feat/markdown-word-wrap
Open

Fix word wrapping for ReactMarkdown#13
inoue22 wants to merge 1 commit intoaws-samples:mainfrom
inoue22:feat/markdown-word-wrap

Conversation

@inoue22
Copy link

@inoue22 inoue22 commented Jan 5, 2026

Issue #, if available:

Description of changes:

Description

This PR addresses text overflow and TypeScript type safety issues in the ReactMarkdown component.
Long strings like URLs will now wrap properly within chat bubbles, and the component passes TypeScript strict mode checks.

Changes

  1. Word wrapping fix: Added word-break: break-word style to prevent long strings (URLs, etc.) from overflowing chat bubbles
  2. TypeScript types: Added explicit Components type import and type assertion to fix TypeScript strict mode compatibility

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments