-
Notifications
You must be signed in to change notification settings - Fork 277
Encode markdown formatted fields to prevent issues with >, <, and $ #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encode markdown formatted fields to prevent issues with >, <, and $ #500
Conversation
…n and greater than signs
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #500 +/- ##
=======================================
Coverage ? 98.01%
=======================================
Files ? 15
Lines ? 1056
Branches ? 199
=======================================
Hits ? 1035
Misses ? 7
Partials ? 14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@agreaves-ms we ask that you follow the process as outlined in the https://github.com/microsoft/azure-devops-mcp/blob/main/CONTRIBUTING.md Please create an issue first, and if approved, we can proceed with a PR |
Thank you @danhellem, I've added issue #508 |
Thanks for the PR! Escaping But escaping Encoding it would only make the raw text harder to read (e.g. Could you clarify why encoding If it's not needed, can we kindly ask you to update the PR to only escape |
@polatengin I was attempting to address accidental LaTeX rendering in Markdown as well. I realize my contrived sample work items did not properly validate this encoding actually fixing this issue (as you needed ![]() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR introduces an encoding utility for Markdown used in all work item creation/update paths to prevent truncation/corruption when <, >, and ${), appear in Markdown fields.
Previously
With this change
GitHub issue number
Associated Risks
The user may intend to use
>
,<
,$
for their Markdown.<
and>
to represent greater than some value (instead of intending to use it as html embedded in Markdown).✅ PR Checklist
🧪 How did you test it?
I wrote tests and provided the following to Claude Sonnet 4 and GPT-5 both before and after this change: