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:
12
.changeset/file-editor-markdown-preview.md
Normal file
12
.changeset/file-editor-markdown-preview.md
Normal 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
|
||||
Reference in New Issue
Block a user