Skip to main content

Python utility to convert markdown and html to image

Project description

markdown2image.py

Hippocratic License HL3-FULL

Python utility to convert markdown and html to image using markdown and playwright.

Installing

pip install markdown2image
playwright install chromium

Usage

Just

from markdown2image import sync_api as md2img

md2img.html2image(html_code, save_path)
md2img.markdown2image(markdown_code, save_path)

Or in a running event loop,

from markdown2image import async_api as md2img

async def func():
    await md2img.html2image(html_code, save_path)
    await md2img.markdown2image(markdown_code, save_path)

See main.py for example code

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markdown2image-0.0.4.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markdown2image-0.0.4-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file markdown2image-0.0.4.tar.gz.

File metadata

  • Download URL: markdown2image-0.0.4.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for markdown2image-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7e8ffa0911fd422b0f2150e7205007a954005908cc44dd84d37a21dc90f783db
MD5 9cee0e306987c5b0e27cbc59d9bd20d1
BLAKE2b-256 05dc795aab0d014b005534b3df19a96bf28edc534b10e1015f925caa0527275a

See more details on using hashes here.

File details

Details for the file markdown2image-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: markdown2image-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for markdown2image-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1a097e8d00f27ae3fca5de893edb8b2a1b9d3dbd8d13dff17c0ce4549784fd43
MD5 e1e38118fbac685f429ce12f2786fa60
BLAKE2b-256 7b6b9e12a071f7d617fab2b13aaf80f6b5071b909b9edfc4a87b352304d7bc9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page