Skip to content

feat(editor): add markdown preview toggle#5430

Closed
Ray0907 wants to merge 1 commit intousememos:mainfrom
Ray0907:feat/markdown-preview
Closed

feat(editor): add markdown preview toggle#5430
Ray0907 wants to merge 1 commit intousememos:mainfrom
Ray0907:feat/markdown-preview

Conversation

@Ray0907
Copy link

@Ray0907 Ray0907 commented Jan 4, 2026

  • Add preview button (Eye icon) next to InsertMenu
  • Toggle between edit and preview mode
  • Support Cmd/Ctrl+Shift+P keyboard shortcut
  • Reuse MemoContent component for rendering

Closes #5390

  - Add preview button (Eye icon) next to InsertMenu
  - Toggle between edit and preview mode
  - Support Cmd/Ctrl+Shift+P keyboard shortcut
  - Reuse MemoContent component for rendering

  Closes usememos#5390
@Ray0907 Ray0907 requested a review from johnnyjoygh as a code owner January 4, 2026 16:33
const { valid } = validationService.canSave(state);

const isSaving = state.ui.isLoading.saving;
const is_preview_mode = state.ui.isPreviewMode;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_preview_mode is recommended to use camelCase.

@ParveenBhardwaj
Copy link

Hi, while having a preview mode is appreciated and an excellent addition to the app. Wondering if it might also be possible to render markdow while editing, something similar to Obsidian?

@boojack boojack force-pushed the main branch 2 times, most recently from a196c72 to 71e8a06 Compare February 10, 2026 01:15
@boojack boojack self-requested a review as a code owner February 24, 2026 14:23
@boojack boojack force-pushed the main branch 2 times, most recently from 2b6b987 to 47d9414 Compare February 24, 2026 14:55
@boojack boojack added the Stale label Mar 4, 2026
@boojack boojack closed this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown preview

4 participants