MarkdownForge is a beautiful, premium, and fully browser-based Markdown editor and viewer. It is designed to work entirely client-side without any back-end requirements, databases, or build steps. Just open the HTML file, and you are ready to write.
- π Light & Dark Theme: Premium, carefully crafted color palettes for both light and dark modes with a simple toggle.
- β‘ Live Preview: See your Markdown rendered to HTML in real-time as you type.
- π¨ Syntax Highlighting: Beautiful code blocks powered by
highlight.js. - π‘οΈ Secure: Markdown output is sanitized using
DOMPurifyto prevent XSS vulnerabilities. βοΈ Resizable Panes: Dynamically adjust the width of the editor and preview areas to suit your workflow.- πΎ Auto-Save: Never lose your progress. Your document is automatically saved to your browser's
localStorage. - π₯ Download & Export: Download your work as a
.mdfile directly to your device or copy the generated HTML with one click. - π Zero Installation: Built with Vanilla HTML, CSS, and JS using CDN libraries. No
npm install, Node.js, or complex setups required.
- HTML5 & CSS3: With modern flexbox layouts and CSS variables.
- Vanilla JavaScript: Pure, lightweight logic.
- Marked.js: For fast and accurate Markdown parsing.
- DOMPurify: For robust XSS sanitization.
- Highlight.js: For code syntax highlighting.
- FontAwesome: For clean and scalable UI icons.
- Google Fonts: Inter & Fira Code for a premium typographic experience.
- Clone this repository or download the ZIP file.
git clone https://github.com/yourusername/markdown-editor.git
- Navigate to the folder.
- Simply double-click on
index.htmlto open it in your default web browser.
Because MarkdownForge requires no build steps, it is perfectly suited for GitHub Pages.
- Push this repository to your GitHub account.
- Go to your repository Settings.
- Navigate to the Pages section on the left sidebar.
- Under "Build and deployment", select the
mainbranch as your source. - Save, and your editor will be live and accessible from anywhere!
This project is open-source and available under the MIT License. Feel free to fork, modify, and use it in your own projects!
Developed with π€ GitHub Copilot