Description
When using task-master show <id>, the markdown rendering in the "Implementation Details" box breaks if the details field contains angle brackets (<, >) inside fenced code blocks.
Steps to Reproduce
- Create a task with
details containing code blocks with JSX/HTML-like syntax:
{
"details": "## Implementation\n\n```tsx\nexport function Component() {\n return <Navigate to=\"/\" replace />\n}\n```"
}
-
Run task-master show <id>
-
Observe: entire Implementation Details section renders as a single line without proper formatting
Expected Behavior
Markdown should render correctly with proper line breaks and formatting. Code blocks should display their contents as-is, including angle brackets.
Actual Behavior
When < characters exist inside code blocks, the entire section renders as one continuous line:
## Current State The PRD mentions `RequireGuest` route guard but it may not be fully implemented...
Instead of properly formatted:
## Current State
The PRD mentions `RequireGuest` route guard but it may not be fully implemented...
Analysis
Tested with tasks in the same file:
- Tasks with 0
< in details → renders correctly
- Tasks with
< inside code blocks (JSX/TSX) → broken rendering
Workaround
Escaping < as < fixes the rendering, but this shouldn't be necessary inside fenced code blocks.
Environment
- task-master version: 0.40.1
- OS: macOS
- Node: v24.x
Description
When using
task-master show <id>, the markdown rendering in the "Implementation Details" box breaks if thedetailsfield contains angle brackets (<,>) inside fenced code blocks.Steps to Reproduce
detailscontaining code blocks with JSX/HTML-like syntax:{ "details": "## Implementation\n\n```tsx\nexport function Component() {\n return <Navigate to=\"/\" replace />\n}\n```" }Run
task-master show <id>Observe: entire Implementation Details section renders as a single line without proper formatting
Expected Behavior
Markdown should render correctly with proper line breaks and formatting. Code blocks should display their contents as-is, including angle brackets.
Actual Behavior
When
<characters exist inside code blocks, the entire section renders as one continuous line:Instead of properly formatted:
Analysis
Tested with tasks in the same file:
<in details → renders correctly<inside code blocks (JSX/TSX) → broken renderingWorkaround
Escaping
<as<fixes the rendering, but this shouldn't be necessary inside fenced code blocks.Environment