{"repo":"LolipopJ/mdimg","free":true,"listed":false,"github":"https://github.com/LolipopJ/mdimg","clone":"git clone https://github.com/LolipopJ/mdimg.git","description":"Convert Markdown or HTML to image!","language":"JavaScript","stars":36,"topics":["markdown","html","image","marked","puppeteer","nodejs","typescript"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"mdimg A tool that can be used to convert Markdown or HTML format text to an image. How does it work? First, the script calls marked to parse Markdown into a HTML document. Next, use Puppeteer to start a headless browser and render the document with HTML and CSS templates. Finally, export our image through Puppeteer's screenshot API. Preview Rendering results: Linux MacOS Windows HTML Template CSS Template Notes ------------------------------------------------------------------------------ ------------------------------------------------------------------------------- ------------------------------------------------------------------------------ ------------- ------------ ------------------------------------------------- default default default empty Only use base stylesheets default github default githubDark Should be used with theme: \"dark\" words words It is recommended to use with plain text only Requirements This tool requires a LTS Node version (v20.0.0+) . Installation CLI: In Node.js project: Usage CLI Example: mdimg will read text from path/to/input.md and convert it to an image file path/to/output.png . When using the command, you must specify either -i (input file, recommended) or -t (directly input text). When using -t to input Markdown text directly, escape characters will not be available . To fix this, for example, you should replace \\n with . You can always call mdimg -h to get complete help. In Node.js project Import mdimg to your project: Convert markdown file","default_branch":null,"files":null,"tree":[],"storefront":"/r/LolipopJ","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LolipopJ/mdimg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}