Skip to content

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?

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.

Markdown preview

3 participants