Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 657 Bytes

README.md

File metadata and controls

34 lines (20 loc) · 657 Bytes

m2i-server

A service to convert markdown to image.

Online service: https://m2i.vercel.app

Endpoints

GET /api

convert markdown to image.

$ curl -X POST https://m2i.vercel.app/api

Request

  • markdown: markdown document content
  • width: viewport width, default: 600
  • scale: device scale factor: 2
  • template: output html template, default: '<link rel="stylesheet" href="https://cdn.zce.me/markdown.css">{{markdown}}'

Response

Rendered image.

Related

  • zce/m2i - A minimalist CLI markdown to image converter.

License

MIT © zce