Fast local Markdown viewer and editor with a clean reading mode, raw Markdown editing, PDF export, and DE/EN UI.
- Two clear tabs:
ReadingandEditor - Raw Markdown editor with helper buttons instead of WYSIWYG complexity
- Clean rendered reading view
- PDF export with timestamp-based filenames
- Autosave with configurable interval
- German and English UI
- Light and dark theme
- Optional top action bar for a cleaner default layout
- Optional scroll sync when switching between reading and editor tabs
- Lightweight math preview for
$...$,$$...$$,\(...\), and\[...\]in reading view and PDF export - Calm syntax highlighting for key Markdown groups
- Relative images and local asset links resolve from the opened Markdown file's folder
- Windows with Python 3.12+
- Packages from
requirements.txt
python -m pip install -r requirements.txt
python main.pyOr start it directly on Windows:
start.bat- Open a Markdown file from
File -> Open...or start writing in the editor. - Switch between
ReadingandEditorwith the two tabs. - Use the editor helper buttons to insert or format Markdown structures.
- Export the current document via
File -> Export PDF. - Adjust language, theme, autosave, export behavior, toolbar visibility, and scroll sync in
View -> Settings.
Math is intentionally lightweight: formulas stay readable and styled locally without a separate TeX runtime.
Relative image links such as  resolve against the current Markdown file location. After Save as, the preview refreshes so moved or newly created asset references use the new folder immediately.
CleanMarkdown opens and saves files locally. Normal editing, preview, and PDF export do not upload documents to a cloud service.
The raw editor uses a restrained four-group color system:
- Blue for headings and emphasis
- Green for inline code and fenced code blocks
- Pink/magenta for links, images, and footnotes
- Soft gray-violet for lists, quotes, tables, and structural markers
Current version: 0.3.1
CleanMarkdown is already usable as a small public MVP. The current focus is practical polish around real-world rendering and PDF export, not feature bloat.
python -m py_compile main.py
python main.py --self-test
python main.pyThe self-test covers file opening, save/export flows, task lists, math markup, scroll sync, and relative asset resolution.
This project is licensed under the MIT License.
