Markdown export: move the emoji to the end of the line (#12278)

Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
Mark Hansen
2025-12-04 10:30:29 +11:00
committed by GitHub
parent a28be4a4e0
commit 1e6243045e
2 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ export function serializeHistoryToMarkdown(history: Content[]): string {
})
.join('') || '';
const roleIcon = item.role === 'user' ? '🧑‍💻' : '✨';
return `${roleIcon} ## ${(item.role || 'model').toUpperCase()}\n\n${text}`;
return `## ${(item.role || 'model').toUpperCase()} ${roleIcon}\n\n${text}`;
})
.join('\n\n---\n\n');
}