diff --git a/profiler/src/profiler/TracyLlmChat.cpp b/profiler/src/profiler/TracyLlmChat.cpp
index 784ab024..8be6ba8a 100644
--- a/profiler/src/profiler/TracyLlmChat.cpp
+++ b/profiler/src/profiler/TracyLlmChat.cpp
@@ -152,7 +152,21 @@ bool TracyLlmChat::Turn( TurnRole role, const std::string& content )
}
else if( role != TurnRole::Assistant )
{
- m_markdown.Print( content.c_str(), content.size() );
+ auto pos = content.find( "" );
+ if( pos == std::string::npos )
+ {
+ m_markdown.Print( content.c_str(), content.size() );
+ }
+ else
+ {
+ auto str = content;
+ while( ( pos = str.find( "" ) ) != std::string::npos )
+ {
+ auto pos2 = str.find( "" );
+ str = str.substr( 0, pos ) + str.substr( pos2 + sizeof( "" ) - 1 );
+ }
+ m_markdown.Print( str.c_str(), str.size() );
+ }
}
else if( content.starts_with( "\n" ) )
{