Welcome! This guide will help you set up and run MDConvert on your computer. You don't need to be an expert programmer to get this running.
Before you begin, make sure you have Node.js installed. It's a tool that lets you run JavaScript outside of a browser.
- Check if you have it: Open your Terminal (Mac) or Command Prompt (Windows) and type:
node -v - If you don't have it: Download and install the "LTS" version from nodejs.org.
- Open your Terminal.
- Navigate to the project folder (if you haven't already).
cd path/to/mdconvert - Install the project dependencies. This downloads all the little tools the project needs to work.
Wait a moment for it to finish. You might see some "warn" messages—don't worry, that's normal!
npm install
If you want to use the app or make changes to it:
- Run the start command:
npm run dev
- You will see a message like:
Local: http://localhost:5173/ - Open your web browser (Chrome, Safari, Firefox).
- Type
http://localhost:5173into the address bar and hit Enter.
Boom! You should see the MDConvert interface.
- Drag and Drop: Take your HTML, PDF, or JS files from your computer and drop them into the big box that says "Click or Drop Files".
- Wait: You'll see a progress bar. It's usually very fast!
- Download: Click the "Download ZIP" button to save your converted Markdown files.
If you want to create a finalized version of the app (maybe to put on a server or send to a friend):
- Run the build script:
./bin/build.sh
- This creates a new folder called
dist/. - The
dist/folder contains the "ready-to-go" website.
- "Command not found": Ensure you installed Node.js and restarted your terminal.
- Build fails: Try running
npm installagain to make sure everything downloaded correctly. - PDFs not working: Make sure you are running the app (step 3) and not just opening the HTML file directly. The app needs a "server" (which
npm run devprovides) to read PDFs correctly.