summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/utils/MarkdownDisplay.tsx
AgeCommit message (Collapse)Author
2025-08-16Revert "Update semantic color tokens" (#6365)Jacob Richman
2025-08-15Update semantic color tokens (#6253)Miguel Solorio
Co-authored-by: jacob314 <[email protected]>
2025-08-08feat: Add option to hide line numbers in code blocks (#5857)Gal Zahavi
Co-authored-by: Jacob Richman <[email protected]>
2025-07-12Fix extra whitespace in markdown rendering. (#3943)Jacob Richman
Co-authored-by: Scott Densmore <[email protected]>
2025-07-07Fix nested markdown Rendering for table headers and rows #3331 (#3362)zfflxx
Co-authored-by: Ryan Fang <[email protected]>
2025-07-01feat: Add markdown table rendering support (#1955)Tian Jian Wang
Co-authored-by: heartyguy <[email protected]> Co-authored-by: Allen Hutchison <[email protected]>
2025-06-19Fix flicker issues by ensuring all actively changing content fits in the ↵Jacob Richman
viewport (#1217)
2025-06-05Allow themes to theme the UI (#769)Miguel Solorio
2025-06-01more strict italics: delimiters cannot be preceded/followed by \w or ↵Olcan
[./\\]\S (#677)
2025-05-15Refactor: Improve UI rendering and address code review commentsTaylor Mullen
This commit addresses several code review comments primarily focused on improving the rendering and stability of the CLI UI. Key changes include: - Passing `isPending` and `availableTerminalHeight` props to `MarkdownDisplay` to enable more intelligent rendering of content, especially for pending messages and code blocks. - Adjusting height calculations in `ToolGroupMessage` and `ToolMessage` to more accurately reflect available space. - Refining the logic in `App.tsx` for measuring and utilizing terminal height, including renaming `footerRef` to `mainControlsRef` for clarity. - Ensuring consistent prop drilling for `isPending` and `availableTerminalHeight` through `HistoryItemDisplay`, `GeminiMessage`, and `GeminiMessageContent`. - In `MarkdownDisplay`, when `isPending` is true and content exceeds `availableTerminalHeight`, the code block will now be truncated with a "... generating more ..." message. If there's insufficient space even for the message, a simpler "... code is being written ..." will be shown.
2025-05-15Addressed code review commentsTaylor Mullen
2025-05-15Refactor: Replace MarkdownRenderer with MarkdownDisplay componentTaylor Mullen
- This commit refactors the Markdown rendering logic within the CLI UI. The existing `MarkdownRenderer.tsx` class-based component has been replaced with a new functional component `MarkdownDisplay.tsx`. - The `MarkdownDisplay` component is a React.memoized component for improved performance and maintains the same core Markdown parsing and rendering capabilities.