- Add markdown preview toggle to FileEditor with live preview pane - Implement syntax-highlighted code blocks and responsive layout - Add comprehensive tests for preview toggle and content rendering - Update dashboard README with FileEditor usage documentation - Add changeset for markdown preview feature - Clean up obsolete changeset files
660 B
660 B
@dustinbyrne/kb
| @dustinbyrne/kb |
|---|
| patch |
Add markdown preview to file editor
The dashboard file editor now supports a preview mode for markdown files (.md, .markdown, .mdx). When viewing a markdown file, users can toggle between edit mode (textarea) and preview mode (rendered markdown) using Edit/Preview buttons. This follows the same pattern as the spec editor's view/edit toggle.
- Markdown files show Edit/Preview toggle buttons
- Preview mode renders using ReactMarkdown with GitHub-flavored markdown support
- Non-markdown files show only edit mode (no toggle)
- In read-only mode, markdown files default to preview mode with only the Preview button visible