threadr.lostcave.ddnss.de/handlers
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
..
about.go config: rename files to better hint at what they’re used for 2025-06-15 02:47:16 +02:00
accept_cookie.go Initial Commit 2025-06-15 02:37:02 +02:00
app.go All: Enhance session management and security features 2025-12-21 21:26:02 -03:00
board.go All: Migrate boards from global to board specific 2025-08-22 00:07:13 -03:00
boards.go All: Migrate boards from global to board specific 2025-08-22 00:07:13 -03:00
chat.go Chat: Add markdown preview toggle with client-side rendering and user preference 2026-01-15 23:26:37 -03:00
file.go feat: Add file-based avatar system 2025-06-21 16:21:21 -03:00
home.go Fix cookie banner 2025-06-15 02:41:19 +02:00
like.go Initial Commit 2025-06-15 02:37:02 +02:00
login.go All: Enhance session management and security features 2025-12-21 21:26:02 -03:00
logout.go Initial Commit 2025-06-15 02:37:02 +02:00
news.go Create admin user, admin can edit news blotter 2025-06-15 02:41:36 +02:00
preferences.go Preferences: Add user preferences system with database table and settings page 2026-01-15 23:21:03 -03:00
profile.go Initial Commit 2025-06-15 02:37:02 +02:00
profile_edit.go feat: Add file-based avatar system 2025-06-21 16:21:21 -03:00
signup.go Handlers: Add password confirmation validation to signup 2026-01-15 22:39:58 -03:00
thread.go UI: Add navigation improvements with breadcrumbs, back buttons, scroll-to-top, and keyboard shortcuts 2026-01-15 22:49:54 -03:00
userhome.go Initial Commit 2025-06-15 02:37:02 +02:00