An open API service indexing awesome lists of open source software.

https://github.com/zce/m2i-server

A service to convert markdown to image.
https://github.com/zce/m2i-server

Last synced: 1 day ago
JSON representation

A service to convert markdown to image.

Awesome Lists containing this project

README

          

# m2i-server

> A service to convert markdown to image.

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

## Endpoints

### GET `/api`

convert markdown to image.

```shell
$ 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: `'{{markdown}}'`

#### Response

Rendered image.

## Related

- [zce/m2i](https://github.com/zce/m2i) - A minimalist CLI markdown to image converter.

## License

[MIT](LICENSE) © [zce](https://zce.me)