feat(KB-226): add markdown preview to FileEditor

- 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
This commit is contained in:
gsxdsm
2026-03-30 18:41:12 -07:00
parent 8e8a540cb3
commit cd8a1e9779
5 changed files with 241 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
---
"@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