Skip to content

Fix Rich stripping bracket content from template output#3

Merged
holmboe merged 1 commit intomainfrom
fix/disable-rich-markup-in-output
Mar 30, 2026
Merged

Fix Rich stripping bracket content from template output#3
holmboe merged 1 commit intomainfrom
fix/disable-rich-markup-in-output

Conversation

@holmboe
Copy link
Copy Markdown
Contributor

@holmboe holmboe commented Mar 30, 2026

Summary

  • Rich's console.print() interprets [text] as markup tags by default, silently stripping content like [bug] from rendered template output while leaving [EPIC] intact (Rich only matches certain patterns as valid markup)
  • Adding markup=False to the console.print() call ensures template output is printed verbatim

Test plan

  • Verified [bug] is now preserved in output: phabfive T3194 | weav projectloop.md.j2 --data tasks=- --keyval boards=dynamist-documents
  • All 22 existing tests pass
  • Verify error messages still render with color ([red]Error:[/red] uses a separate err_console.print() call that retains markup)

🤖 Generated with Claude Code

Rich's console.print() interprets [text] as markup tags by default,
silently stripping content like [bug] from rendered output. Add
markup=False so template output is printed verbatim.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@holmboe holmboe merged commit 3391d30 into main Mar 30, 2026
6 of 8 checks passed
@holmboe holmboe deleted the fix/disable-rich-markup-in-output branch March 30, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant