Commit 67d5fe0
Replace sanitizeForInlineCode with CommonMark-compliant markdownInlineCode
- markdownInlineCode() uses a fence length = maxRun+1 per CommonMark spec,
preserving the original string (no information loss from backtick→apostrophe)
- Normalises CR/CRLF to LF before wrapping (inline spans can't span lines)
- Export markdownInlineCode for testability
- Add 6 unit tests for markdownInlineCode (plain text, single/double backtick,
CRLF normalisation, backtick-only values)
- Add regression test for formatValidationError with backtick in received value
- Add regression test for resolvePromptFilePath warning with backtick in path
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/ec7c534b-93ac-40e5-bcb6-023bc74969401 parent a4add76 commit 67d5fe0
File tree
4 files changed
+112
-14
lines changed- server
- dist
- src/prompts
- test/src/prompts
4 files changed
+112
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64468 | 64468 | | |
64469 | 64469 | | |
64470 | 64470 | | |
64471 | | - | |
64472 | | - | |
| 64471 | + | |
| 64472 | + | |
| 64473 | + | |
| 64474 | + | |
| 64475 | + | |
| 64476 | + | |
| 64477 | + | |
| 64478 | + | |
| 64479 | + | |
| 64480 | + | |
| 64481 | + | |
| 64482 | + | |
| 64483 | + | |
| 64484 | + | |
| 64485 | + | |
| 64486 | + | |
64473 | 64487 | | |
64474 | 64488 | | |
64475 | 64489 | | |
| |||
64506 | 64520 | | |
64507 | 64521 | | |
64508 | 64522 | | |
64509 | | - | |
| 64523 | + | |
64510 | 64524 | | |
64511 | 64525 | | |
64512 | 64526 | | |
| |||
64602 | 64616 | | |
64603 | 64617 | | |
64604 | 64618 | | |
64605 | | - | |
| 64619 | + | |
64606 | 64620 | | |
64607 | 64621 | | |
64608 | 64622 | | |
| |||
0 commit comments