[GH-ISSUE #52] XML Tag Rendering Issue #7

Open
opened 2026-03-03 00:07:06 +03:00 by kerem · 1 comment
Owner

Originally created by @willmcgugan on GitHub (Nov 19, 2025).
Original GitHub issue: https://github.com/batrachianai/toad/issues/52

Discussed in https://github.com/Textualize/toad/discussions/47

Originally posted by evalstate November 15, 2025
Hi @willmcgugan -- for some reason the first XML tag here has it's brackets stripped:

image

Relevant snippet from agent.jsonl

:{"sessionId":"436a7ab2-a34c-490a-a33c-4aa68c353432","update":{"content":{"text":"The following request was sent to the agents:\n\n<fastagent:request>\ngive a single word greeting in your favourite language\n</fastagent:request>\n\n

LMK if you need more etc.

https://github.com/Textualize/toad/discussions/47

Originally created by @willmcgugan on GitHub (Nov 19, 2025). Original GitHub issue: https://github.com/batrachianai/toad/issues/52 ### Discussed in https://github.com/Textualize/toad/discussions/47 <div type='discussions-op-text'> <sup>Originally posted by **evalstate** November 15, 2025</sup> Hi @willmcgugan -- for some reason the first XML tag here has it's brackets stripped: <img width="1074" height="492" alt="image" src="https://github.com/user-attachments/assets/7c9655fa-4741-407c-a59a-467f765d737e" /> Relevant snippet from `agent.jsonl` ``` :{"sessionId":"436a7ab2-a34c-490a-a33c-4aa68c353432","update":{"content":{"text":"The following request was sent to the agents:\n\n<fastagent:request>\ngive a single word greeting in your favourite language\n</fastagent:request>\n\n ``` LMK if you need more etc.</div> https://github.com/Textualize/toad/discussions/47
Author
Owner

@willmcgugan commented on GitHub (Dec 15, 2025):

@evalstate I thought maybe this was a bug in the upstream Markdown library I use. But an update didn't change anything.

I also noticed that the official commonmark libray does the same thing.

Image

I think this may be the expected rendering of that content. I think that's because tags in Markdown are considered HTML.

As a matter of fact, GitHub renders it in the same way:

fastagent:request
give a single word greeting in your favourite language
</fastagent:request>

I'm not sure if there should be any changes to the markdown rendering for this case. Or if the solution is just to put that in a code fence.

<!-- gh-comment-id:3655129229 --> @willmcgugan commented on GitHub (Dec 15, 2025): @evalstate I thought maybe this was a bug in the upstream Markdown library I use. But an update didn't change anything. I also noticed that the official commonmark libray does the same thing. <img width="1114" height="620" alt="Image" src="https://github.com/user-attachments/assets/4cd24853-ff06-494c-ac7b-56946e12954b" /> I think this may be the expected rendering of that content. I think that's because tags in Markdown are considered HTML. As a matter of fact, GitHub renders it in the same way: <fastagent:request> give a single word greeting in your favourite language </fastagent:request> I'm not sure if there should be any changes to the markdown rendering for this case. Or if the solution is just to put that in a code fence.
Sign in to join this conversation.
No labels
bug
bug
diff
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/toad#7
No description provided.