Chrome Recommended!
Download a markdown viewer plugin for your browser.
Chrome: MD Reader (Recommended)
Firefox: Markdown Viewer (Recommended)
Download or upgrade Node.js to v20.11.0, npm and npx to v10.1.0.
Download the code.
Create a copy of .env.sample and name it as .env.
Create your HackMD API Key.
Copy your key to .env file.
Run the commands bellow to start the server.
npm install
npm run dev
Which the result should look something like this :
Go to your localhost server (http://localhost:3000).
HackMD ID is the last section of the URL.
https://hackmd.io/9Fe7huR5QCG_jTG_baWVWw
In this case the ID is 9Fe7huR5QCG_jTG_baWVWw
https://hackmd.io/@waltson/H1rSNYAd6
In this case the ID is H1rSNYAd6
Copy the ID and paste in the input section.
After hitting the submit button, the result will be shown in a new tab, the markdown viewer plugin should styled markdown content instead of showing raw text, press ctrl + p to print the page, choose Save as PDF.



