Skip to main content

基于 Pillow 的可自定义 Markdown 风格渲染器,渲染速度快且易于配置

Project description

CustomMarkdownImage

开始使用

将整个项目clone下来,删除sample后,放入你的项目中,直接import CustomMarkdownRenderer as Cmr即可开始使用

如何使用

先使用style = pillowmd.LoadMarkdownStyles(style路径),然后使用style.Render(markdown内容)即可快速渲染。若没有style,则可以pillowmd.MdToImage(内容)使用默认风格渲染

自定义style

见目录下的how_to……,里面有进一步指南,也可以进入Q群498427849

使用例

见目录下各sample.py文件

图片预览

元素预览 元素预览

分页+侧边图渲染 额外效果

其他

欢迎各位分享你自己的style风格,联系QQ614675349,或者直接在GitHub上提交PR

TODO

LaTex解析

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

pillowmd-0.5.2.tar.gz (19.2 MB view details)

Uploaded Source

Built Distribution

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

pillowmd-0.5.2-py3-none-any.whl (19.4 MB view details)

Uploaded Python 3

File details

Details for the file pillowmd-0.5.2.tar.gz.

File metadata

  • Download URL: pillowmd-0.5.2.tar.gz
  • Upload date:
  • Size: 19.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for pillowmd-0.5.2.tar.gz
Algorithm Hash digest
SHA256 c541eeab9387c94e25407ba21b807b96bc5d482b62c8e57507138cd634945e18
MD5 5a525543ab116b7a053ea8ad3e072759
BLAKE2b-256 8dd4394282a6373916e32171ab66e5d0db41fab67bdcccb235b925139861b603

See more details on using hashes here.

File details

Details for the file pillowmd-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: pillowmd-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 19.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for pillowmd-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd7f071b983f0723889ddff3993441e01ceac21bc1a70caff4df74a28ee6b8da
MD5 04664bf4bf19555d985533a33796818b
BLAKE2b-256 3e56b8acc2c9ee5c8d82583799952e17b62d5d2b010735231111a0f78be9caf8

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