A lightweight Electron app for reading Markdown files with a minimal interface.
- Open a single Markdown file
- Open a folder and recursively scan for Markdown files
- Render local images and internal Markdown links
- Adjust theme, font size, and reading width with persisted local settings
npm install
npm startYou can also pass a file or folder path on launch:
npm start -- /absolute/path/to/notesOr launch the included sample set:
npm start -- ./examplesFor the large-document navigation example specifically:
npm start -- ./examples/large-doc.mdThe project now includes electron-builder, so you can package a real app instead of launching it through npm start.
Install dependencies:
npm installBuild an unpacked app bundle for a quick local smoke test on your current platform:
npm run buildCreate a macOS app bundle and DMG from macOS:
npm run dist:macThe output is written to dist/. On macOS, the main artifacts will be:
dist/mac-arm64/MD Viewer.appon Apple Silicon Macsdist/MD Viewer-<version>.dmg
Create a Windows installer from Windows:
npm run dist:winThe main Windows artifact will be an NSIS installer in dist/, typically:
dist/MD Viewer Setup <version>.exe
Electron packaging is most reliable when you build on the target operating system:
- Build macOS binaries on macOS
- Build Windows binaries on Windows
If you want both automatically, use CI to build each platform on its own runner. A sample GitHub Actions workflow is included in .github/workflows/build.yml.
After building:
- On macOS, open the generated
.appinside the platform folder underdist/such asdist/mac-arm64/MD Viewer.app, or install from the generated DMG - On Windows, run the generated
Setup.exeand launch the installed app normally
Unsigned apps may trigger Gatekeeper or SmartScreen warnings until you add code signing.
.md.markdown.mdown.mkd
