/markdown-editor-reactjs

A free-to-use Markdown Editor built with ReactJS and TailwindCSS, offering features like importing/exporting `.md` files, real-time editing with live preview, word/line/character counters, and a copy button for Markdown content. Perfect for developers and writers! 🚀

Primary LanguageJavaScript

Markdown Editor

A feature-rich Markdown Editor built with ReactJS and TailwindCSS, designed to simplify writing, editing, and managing Markdown files. This editor is free to use and does not include any license.

✨ Features

  • Import and Export Markdown Files: Easily upload .md files or export your work in Markdown format.
  • Save with Custom Filenames: Save your Markdown files with personalized names for better organization.
  • Real-Time Editor with Preview:
    • Preview your Markdown in real-time while editing.
    • Toggle between Preview Mode (rendered Markdown) and Raw Mode (Markdown source code).
  • Word, Line, and Character Counter: Keep track of your content with dynamic counters that update as you type.
  • Copy Markdown Content: Quickly copy the raw Markdown code to your clipboard with a single click.
  • Responsive and Minimal UI: Built with TailwindCSS for a clean, user-friendly interface.
  • Sidebar with Predefined Sections:
    • Browse a list of predefined sections and search for specific ones. Click on any section to load its default Markdown content.
  • Custom Section Creation: Easily create your own custom sections with a simple click of the "Custom Section" button.
  • Reorder Sections: You can now reorder your selected sections by dragging and dropping them in the editor.
  • Improved Table Preview: Enhanced table rendering in the preview to ensure proper display.

🛠️ Built With

  • ReactJS: For building the interactive and dynamic user interface.
  • TailwindCSS: For crafting a responsive and modern design.

📦 Getting Started

Prerequisites

  • Node.js and npm(pnpm) installed on your system.

Installation

  1. Clone the repository:
    git clone https://github.com/pawantech12/markdown-editor-reactjs.git  
  2. Navigate to the project directory:
    cd markdown-editor-reactjs  
  3. Install dependencies:
    pnpm install  
  4. Start the development server:
    pnpm run dev
  5. Open your browser and go to http://localhost:5173 to view the application.

🖥️ Usage

  1. Open the editor in your browser.
  2. Import a .md file or start typing directly in the editor.
  3. Use the Preview button to view the rendered content or the Raw button to see the Markdown source code.
  4. Export your work or copy the Markdown content as needed.
  5. Use the sidebar to search for predefined sections and add them to your document.
  6. Create custom sections and reorder them as per your requirements.

🌟 Contributing

Contributions are welcome! Feel free to fork this repository and create a pull request with your improvements or suggestions.

🆓 License

This project is free to use and does not include any license.

Happy writing with Markdown! 😊