Getting started
What md2 is, and how to print your first document in a minute.
What is md2?
md2 turns Markdown into polished documents: print-ready PDF, PNG images and standalone HTML. It is built for Arabic from the root: direction is detected per paragraph, and Arabic fonts are embedded in the file.
The same engine (@md2/engine) runs in your browser and on md2's server, so what you see in the preview is what you get.
From the studio
- Open the studio.
- Type or paste Markdown, or open a
.mdfile from your device. - Pick a theme and direction, then export to PDF, PNG, HTML or Markdown.
No account needed. The draft is kept in your browser only; the text is sent to the server only when you ask for PDF or PNG.
From the terminal
BASH
curl "https://md2-edge.abdalganih1.workers.dev/v1/convert?format=pdf" \
-H "Content-Type: text/markdown" \
--data-binary @report.md -o report.pdfFull details in the REST API page.
Guest limits
| Limit | Value |
|---|---|
| Document size | 1 MB |
| PDF and PNG | 10 requests per minute per IP |
| HTML, Markdown, JSON, TXT | 60 requests per minute |
Printed output is cached by content hash, so asking for the same document twice is much faster.