feat(ai-insights): ai content renderer#110847
Merged
obostjancic merged 7 commits intomasterfrom Mar 18, 2026
Merged
Conversation
- Remove `export` from types only used internally (knip) - Use toEqual instead of property access on discriminated union (typescript)
…arser The blanket bail-out when both ' and " were present prevented parsing of Python dicts where string values contain markdown or natural language. The try/catch around JSON.parse already handles invalid conversions.
Add renderFormatted prop to MultilineText so AIContentRenderer can use the XML-aware renderer in pretty mode while keeping the raw/pretty toggle.
JonasBa
pushed a commit
that referenced
this pull request
Mar 18, 2026
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.
closes: TET-2049: Markdown Renderer vs. XML tags
Adds a content renderer that supports multiple different content types like
json,python-dict,markdown,plain-textandmarkdown-with-xml. All of these except Markdown with XML tags were already supported in some way so this component just makes the content type detection explicit and delegates to the correct renderer based on it.Markdown with XML-like tags
Before:


After: