From d3d67272a7eaeda842da7f8fb5fcd6e15b0bee64 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Mon, 6 Apr 2026 10:37:40 -0700 Subject: [PATCH] Fix blumeops-tasks swallowing bracket content in descriptions Rich markup parser interprets [text] as style tags, stripping wiki-links like [[review-compensating-controls]] to empty []. Escape description lines with rich.markup.escape(). Co-Authored-By: Claude Opus 4.6 (1M context) --- mise-tasks/blumeops-tasks | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mise-tasks/blumeops-tasks b/mise-tasks/blumeops-tasks index 94daa51..333178e 100755 --- a/mise-tasks/blumeops-tasks +++ b/mise-tasks/blumeops-tasks @@ -26,6 +26,7 @@ from datetime import date import httpx from rich.console import Console +from rich.markup import escape from rich.text import Text TODOIST_API_BASE = "https://api.todoist.com/api/v1" @@ -150,10 +151,10 @@ def main() -> int: header.append(f" {content}") console.print(header) - # Description indented + # Description indented (escape rich markup to preserve brackets) if description: for line in description.split("\n"): - console.print(f" {line}", style="dim") + console.print(f" {escape(line)}", style="dim") console.print()