A minimalist Markdown editor built with React and Vite, featuring syntax highlighting, live preview, and theme support.
- Markdown editing with syntax highlighting
- Live preview and split view modes
- Multiple theme support (Dark, Light, Dracula)
- File management (create, rename, delete)
- Import/Export functionality
- Automatic file persistence
- Node.js (version 14 or higher)
- npm or yarn
Clone the repository:
git clone https://github.com/your-username/text-editor-minimal.git
cd text-editor-minimalInstall dependencies:
npm installStart the development server:
npm run devOther available commands:
npm run build # Create production build
npm run preview # Preview production build
npm run lint # Run linter- React 18
- Monaco Editor
- Vite
- ESLint
The editor is built with a modular architecture:
FileContext- Manages file state and operationsEditor- Monaco editor integration with theme supportSidebar- File management interfacePreview- Markdown rendering
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Contributions are welcome. Please open an issue first to discuss proposed changes.
For questions or suggestions, please open an issue in the repository.