Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weaming/md2png
Render markdown file to PNG image. Support custom CSS URL/file.
https://github.com/weaming/md2png
css efficiency html markdown png tool
Last synced: about 6 hours ago
JSON representation
Render markdown file to PNG image. Support custom CSS URL/file.
- Host: GitHub
- URL: https://github.com/weaming/md2png
- Owner: weaming
- Created: 2018-04-21T17:39:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T07:34:39.000Z (about 6 years ago)
- Last Synced: 2024-11-07T16:43:03.687Z (6 days ago)
- Topics: css, efficiency, html, markdown, png, tool
- Language: Go
- Homepage:
- Size: 243 KB
- Stars: 36
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![logo generated by https://egoist.moe/slogan/](logo.png)
Render markdown file to PNG image. Support custom CSS URL/file.
## Install
go get github.com/weaming/md2png
## Usage
Usage of ./md2png:
-bin string
wkhtmltoimage bin path (default "/usr/local/bin/wkhtmltoimage")
-css string
optional css file path, support any style you like❤️, include fonts!
-debug
show generated html
-m string
markdown file path
-o string
output file path (default same as markdown file name)
-w int
output image width (default 960)## Example css
- https://github.com/jasonm23/markdown-css-themes
- https://github.com/mixu/markdown-styles## Screenshot
![](screenshots/README.png)
## `wkhtmltoimage` download url
- https://github.com/wkhtmltopdf/wkhtmltopdf/releases
- Mac executable: https://github.com/nicholasklick/wkhtmltoimage-binary/tree/master/libexec