Fix markdown rendering: indent RPC message code blocks under bullet points#716
Merged
Fix markdown rendering: indent RPC message code blocks under bullet points#716
Conversation
…essages Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix inconsistent markdown rendering
Fix markdown rendering: indent RPC message code blocks under bullet points
Feb 5, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes markdown rendering issues in GitHub Actions step summaries where JSON code blocks in RPC log messages were appearing at the root level instead of nested under their parent bullet points.
Changes:
- Modified markdown logger to indent continuation lines of multi-line RPC messages with 2 spaces
- Added test assertions to verify JSON code blocks and closing fences are properly indented
- RPC messages are identified by
**prefix and directional arrows (→/←); single-line messages remain unchanged
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| internal/logger/markdown_logger.go | Added logic to split multi-line pre-formatted (RPC) messages and indent continuation lines with 2 spaces for proper markdown nesting |
| internal/logger/markdown_logger_test.go | Updated comment and added test assertions to verify JSON code blocks are indented with 2 spaces under bullet points |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MCP Gateway logs with RPC messages containing JSON code blocks rendered inconsistently in GitHub Actions step summaries. Code blocks appeared at root level instead of nested under their parent bullet point.
Before: