xonecas.io
70160
Ce

cel-tui / commit a750598

docs(TODO): plan flexWrap for HStack and Markdown inline styling

flexWrap: "wrap" is a general layout feature (CSS flex-wrap).
Markdown component will use it by splitting inline spans at word
boundaries into Text nodes inside HStack({ flexWrap: "wrap" }).
Framework handles line wrapping, component handles word splitting.

xonecas2026-04-04 a7505987477df35d78febc56b62abf270a6f65e7 parent b0fe6fc

1 file changed

TODO.md+3−1
@@ -30,7 +30,9 @@ Remaining work, known bugs, and planned improvements.
3030
3131 - ❌ Bracketed paste mode support
3232
33-- ❌ **Markdown inline styling** — The `Markdown` component renders block-level styling (headings, code blocks, lists, blockquotes, HR) but strips inline formatting (`**bold**`, `*italic*`, `` `code` ``, `[links](url)`) to plain text. Rendering inline styles requires either framework support for styled spans within `Text` content (e.g., ANSI-in-content parsing in paint.ts) or pre-computed line breaking with width knowledge. See `packages/components/src/markdown.ts`.
33+- ❌ **`flexWrap: "wrap"` for HStack** — Add `flexWrap?: "nowrap" | "wrap"` to `ContainerProps`. When set to `"wrap"`, children that exceed the container width flow to the next line (like CSS `flex-wrap: wrap`). This is a general layout feature useful for tags, chips, and inline elements — but the primary motivation is enabling Markdown inline styling.
34+
35+- ❌ **Markdown inline styling** — The `Markdown` component strips inline formatting (`**bold**`, `*italic*`, `` `code` ``, `[links](url)`) to plain text. With `flexWrap: "wrap"` on HStack, the component can split inline spans at word boundaries into individual `Text` nodes and wrap them in `HStack({ flexWrap: "wrap" })`. The framework handles line wrapping; the component handles word splitting. Depends on `flexWrap` above.
3436
3537 ## Future Enhancements