-
Notifications
You must be signed in to change notification settings - Fork 25
Comparing changes
Open a pull request
base repository: basecamp/fizzy-cli
base: v3.0.1
head repository: basecamp/fizzy-cli
compare: v3.0.2
- 6 commits
- 9 files changed
- 1 contributor
Commits on Mar 2, 2026
-
Convert markdown to HTML before sending to prevent spurious Action Te…
…xt attachments An LLM using the CLI created a card with markdown content that included a backtick-wrapped `<action-text-attachment>` tag. Since the CLI sent content as-is, Action Text parsed the literal tag as a real attachment, triggering Mention::CreateJob and causing errors. The fix runs all card descriptions and comment bodies through goldmark (markdown-to-HTML) before sending. This converts backtick-wrapped HTML tags into escaped `<code>` blocks while passing through raw HTML unchanged, so real attachments continue to work. Also fixes parseAttachments to handle <figure> blocks that appear after the closing </action-text-attachment> tag (caused by goldmark wrapping bare attachment tags in <p>).
Configuration menu - View commit details
-
Copy full SHA for 17a91bd - Browse repository at this point
Copy the full SHA 17a91bdView commit details -
Handle backtick-wrapped attachment tags in mixed HTML/markdown content
Goldmark doesn't convert backtick code spans inside HTML blocks, so backtick-wrapped <action-text-attachment> tags in mixed HTML/markdown pass through as raw HTML. Add a post-processing step to escape any attachment tags that remain wrapped in literal backticks. Also adds an e2e test for the combined case: a real attachment alongside backtick-wrapped example attachment tags in the same description.
Configuration menu - View commit details
-
Copy full SHA for 741f785 - Browse repository at this point
Copy the full SHA 741f785View commit details -
Add unit tests for markdown conversion and attachment parsing
- TestMarkdownToHTML: 7 tests covering backtick escaping, raw HTML passthrough, mixed content, and real alongside backtick attachments - TestParseAttachments: add case for figure block outside attachment tags (p-wrapped HTML from markdown conversion) - Update TestCommentCreate to expect markdown-converted body
Configuration menu - View commit details
-
Copy full SHA for 34cd5f6 - Browse repository at this point
Copy the full SHA 34cd5f6View commit details -
Skip markdown conversion for plain text content
Plain text without HTML tags or markdown syntax (backticks, angle brackets) should pass through unchanged to avoid wrapping simple text in unnecessary <p> tags. Adds unit test verifying plain text passthrough and reverts the comment test expectation back to plain text.
Configuration menu - View commit details
-
Copy full SHA for 134adf3 - Browse repository at this point
Copy the full SHA 134adf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c89d4b - Browse repository at this point
Copy the full SHA 9c89d4bView commit details -
Merge pull request #57 from robzolkos/fix-markdown-attachment-sanitiz…
…ation Fix spurious mentions from literal action-text-attachment tags in CLI content
Configuration menu - View commit details
-
Copy full SHA for a822e05 - Browse repository at this point
Copy the full SHA a822e05View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.0.1...v3.0.2