docs/dev/README.md
Python (>= 3.12)
Node.js (>=20.19.0) — the PR build CI uses Node 22.21.1, the release CI uses Node 24.14.1; any version meeting the minimum should work
A lot of patience
.npmrc (pnpm respects this file)git clone https://github.com/marktext/marktext.git
cd marktext
pnpm install
pnpm run minify-locales
pnpm run dev
main and preload processes are NOT automatically hot-loaded on edit, you need to reload the development process on each edit unfortunately
renderer process is hot-loaded, loss of states can often lead to weird errors. I recommend doing a full reload if this happensmain and preload still compile to CommonJSrenderer is ESModules only (take note when using any legacy CommonJS libraries)# For windows
$ pnpm run build:win
# For macOS
$ pnpm run build:mac
# For Linux
$ pnpm run build:linux