Skip to content

WaltsonZh/HackMD2PDF

Repository files navigation

HackMD To PDF

Table of Content


How to Use

1. Browser Setup

Chrome Recommended!

Download a markdown viewer plugin for your browser.

Chrome: MD Reader (Recommended)

Firefox: Markdown Viewer (Recommended)

2. Environment Setup

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.

env

Create your HackMD API Key.

Copy your key to .env file.

HackMDAPI

3. Start Local Server

Run the commands bellow to start the server.

npm install
npm run dev

Which the result should look something like this :

result

Go to your localhost server (http://localhost:3000).

4. Enter HackMD ID

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.

submit

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors