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.
- Host: GitHub
- URL: https://github.com/zce/m2i-server
- Owner: zce
- License: mit
- Created: 2021-02-04T07:29:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T07:19:24.000Z (over 2 years ago)
- Last Synced: 2025-02-25T21:16:10.693Z (about 1 year ago)
- Language: HTML
- Homepage: https://m2i.vercel.app
- Size: 32.3 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)