Skip to content

feat: export plain text or HTML by file extension - #8

Merged
autoantohaki merged 1 commit into
mainfrom
feat/export-formats
Oct 21, 2026
Merged

autoantohaki merged 1 commit into
mainfrom
feat/export-formats

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Before: /export always wrote Markdown, whatever the file name.

After: /export chat.txt writes plain text and /export chat.html writes a standalone page with escaped content. Every other path, including the default, still writes Markdown.

How: exportFormatFor picks the renderer from the extension; new conversationToText and conversationToHtml are exported alongside conversationToMarkdown. Tests cover both renderers, HTML escaping, and the extension routing.

@autoantohaki
autoantohaki merged commit cb7c002 into main Oct 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant