mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
feat: Improve HTML export with markdown rendering and theme support
- Render markdown server-side using marked (tables, headings, code blocks, etc.) - Honor user's chosen theme (light/dark) with appropriate color defaults - Add image rendering for user messages - Style code blocks with TUI-like ```language markers
This commit is contained in:
parent
e904b11e7b
commit
531bb91337
4 changed files with 489 additions and 88 deletions
|
|
@ -1483,7 +1483,8 @@ export class AgentSession {
|
|||
* @returns Path to exported file
|
||||
*/
|
||||
exportToHtml(outputPath?: string): string {
|
||||
return exportSessionToHtml(this.sessionManager, this.state, outputPath);
|
||||
const themeName = this.settingsManager.getTheme();
|
||||
return exportSessionToHtml(this.sessionManager, this.state, { outputPath, themeName });
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue