Skip to content

feat: default to markdown preview when opening .md files#148

Merged
bbsngg merged 1 commit intomainfrom
feat/markdown-default-preview
Apr 8, 2026
Merged

feat: default to markdown preview when opening .md files#148
bbsngg merged 1 commit intomainfrom
feat/markdown-default-preview

Conversation

@bbsngg
Copy link
Copy Markdown
Contributor

@bbsngg bbsngg commented Apr 8, 2026

Automatically render Markdown files in preview mode by default when opened in the Code Editor.

Key changes:

  • Updated 'markdownPreview' state in 'CodeEditor.jsx' to initialize based on file extension.
  • Added a hook to reset the preview mode correctly when switching between files of different types.

@bbsngg bbsngg merged commit 7ab287f into main Apr 8, 2026
1 check passed
@bbsngg bbsngg deleted the feat/markdown-default-preview branch April 8, 2026 17:53
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.

1 participant