Skip to content

Implemented Markdown Preview Renderer#12

Merged
abasiri merged 1 commit intodoctly:mainfrom
LIS-Benjamin:main
Mar 20, 2026
Merged

Implemented Markdown Preview Renderer#12
abasiri merged 1 commit intodoctly:mainfrom
LIS-Benjamin:main

Conversation

@LIS-Benjamin
Copy link
Contributor

Frame 3

Markdown Preview Toggle for Plan & Memory Editors

Adds a Preview button to both the plan and memory/agent file editors that renders markdown content in a styled dark-theme view. Perfect for reading plan files.

Changes

  • Preview toggle — clicking "Preview" renders the markdown and hides the CodeMirror editor; clicking "Edit" switches back
  • Dark-themed rendering — headings, code blocks, tables, blockquotes, links, and lists styled to match the existing dracula palette
  • Auto-reset on file switch — opening a different file resets back to editor mode
  • Copy/Save still work — both buttons read from the CodeMirror state regardless of preview mode

@abasiri abasiri merged commit 1e7b934 into doctly:main Mar 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants