Java · Swing · Desktop · Optional AI
Write Markdown.
See it rendered, instantly.
A small, focused desktop editor for Markdown files — with live preview, local file tools, and optional AI help when you want to summarize, rewrite, or polish a draft.
Weekly notes
Track progress with a checklist:
- ☑ Draft outline
- ☐ Add table
Task / Owner table renders below it.
What it does
Built for writing, not managing settings. Every feature is one most Markdown files actually need.
-
Live preview
Every keystroke updates the rendered pane, including GitHub-flavored tables.
-
Folder browser
Open a folder once; the sidebar remembers it and lists your Markdown files.
-
Undo & redo
Full edit history per session, mapped to the shortcuts you already know.
-
Export to PDF
Turn a rendered document into a shareable PDF in one menu action.
-
Unsaved-change tracking
The title bar tells you what's open and whether it's been edited.
-
Desktop Java app
A Swing editor with a bundled Windows installer — no browser, no Electron, no background services.
-
AI writing assistant
Summarize, rewrite, or correct grammar using local Ollama models, OpenAI, or Gemini.
-
Review before applying
Generated Markdown stays in a review window until you choose to replace, insert, or copy it.
AI assistance, on your terms
Use a model running privately on your computer or connect your own cloud API key. AI is optional and never interrupts the normal Markdown workflow.
-
Summarize
Condense a selected passage or the full document while preserving important facts, links, and Markdown structure.
-
Rewrite
Improve clarity and readability without changing the original meaning.
-
Fix grammar
Correct grammar and spelling while keeping headings, lists, tables, links, and code blocks intact.
-
Choose your provider
Connect to Ollama locally, or use your own OpenAI or Gemini API key and model.
Supported providers
- Ollama — local, no API key
- OpenAI Responses API
- Google Gemini API
-
Configure a provider
Open
AI → AI Settings, select a provider and model, then enter an API key only when a cloud provider requires one. -
Select what to edit
Select Markdown to work on, or leave nothing selected to use the entire document.
-
Review the result
Choose Replace Source, Insert Below, or Copy only after checking the generated Markdown.
Privacy: API keys remain in memory and are never saved. Before the first cloud request of a session, MarkdownEditor shows how many characters will be sent and asks for confirmation. Ollama requests stay on your computer.
Using it
Four steps from download to a finished document.
-
Download the app
Grab the latest Windows installer from the Releases page. It bundles a Java runtime, so a separate JDK is not required.
-
Open a file or folder
Use
File → Openfor a single document, orFile → Open Folderto browse a whole project in the sidebar. -
Write
Type Markdown on the left. The right pane updates as you go — no separate preview command to remember.
-
Save or export
Save back to
.mdwithCtrl+S, or turn the current preview into a PDF from the Export menu.
Contributing
The project is built in NetBeans with drag-and-drop Swing forms, so the fastest path in is opening it the same way.
-
Clone the repo
git clone https://github.com/aungthuhein2005/MarkdownEditor.git
-
Open in NetBeans
Use
File → Open Projectand select the cloned folder. The UI forms open in the Design view, controllers and models are plain Java. -
Make your change
The app follows a light MVC split —
model/,controller/, andui/— so most fixes touch one package at a time. -
Open a pull request
Push a branch and describe what changed and why. Small, focused PRs are easiest to review.
Found a bug instead? Open an issue with your OS and Java version — the app includes both in the report template.
- Java Swing
- JavaFX WebView
- commonmark-java
- FlatLaf
- openhtmltopdf
- Gson
- Ollama / OpenAI / Gemini
- NetBeans / Ant
- jpackage