On /tasks/<id> pages, task descriptions are rendered as plain monospaced text (<pre>), while epic designs are rendered as formatted markdown. Both should use markdown rendering.
In DescriptionViewPartial ToHtml (Web.hs ~1820):
if isEpic
then Lucid.div_ [Lucid.class_ "markdown-content"] (renderMarkdown desc)
else Lucid.pre_ [Lucid.class_ "description"] (Lucid.toHtml desc)
Change to always use markdown:
if Text.null desc
then Lucid.p_ [Lucid.class_ "empty-msg"] (if isEpic then "No design document yet." else "No description yet.")
else Lucid.div_ [Lucid.class_ "markdown-content"] (renderMarkdown desc)
The isEpic flag is still useful for:
But not for choosing render format.
TaskDetailPage initial render (before any HTMX swaps) should also use markdown. Search for other places where description is rendered with <pre>.
Files: Omni/Jr/Web.hs
Testing: 1. Create a task with markdown in description (headers, lists, code blocks) 2. View task detail page 3. Verify markdown renders properly (not as raw text)
No activity yet.