threadr.lostcave.ddnss.de/static
Joca ffe9f30c0a
Chat: Add markdown preview toggle with client-side rendering and user preference
- Add renderMarkdownPreview() function to app.js matching server-side Go implementation
- Support headers (#, ##, ###), bold (**text**), italic (*text*), code (`code`), code blocks (```lang), lists (* item), and @mentions
- Add Edit/Preview tab UI above chat textarea with active tab highlighting
- Preview updates in real-time with 300ms debounce while typing
- Respect user's markdown_preview_default preference from settings (edit or preview)
- Pass user preferences to chat template via ChatHandler
- Add markdown tab and preview container styles matching beige/blue/pink theme
- Preview shows formatted HTML identical to actual chat messages
- Support dark mode with appropriate color adjustments for tabs and preview
- Tabs use cyan accent for active state, orange for inactive hover

User can switch between editing markdown and seeing live preview of formatted output.
2026-01-15 23:26:37 -03:00
..
img Initial Commit 2025-06-15 02:37:02 +02:00
app.js Chat: Add markdown preview toggle with client-side rendering and user preference 2026-01-15 23:26:37 -03:00
style.css Chat: Add draft auto-save to localStorage with restore and discard options 2026-01-15 23:23:12 -03:00