weaming / md2png

Render markdown file to PNG image. Support custom CSS URL/file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo generated by https://egoist.moe/slogan/

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

Screenshot

wkhtmltoimage download url

About

Render markdown file to PNG image. Support custom CSS URL/file.


Languages

Language:Go 100.0%