mailify-md
简介
轻松将md文件转化为邮箱环境渲染后的html文件
安装
# 安装包
pip install mailify-md
# 安装浏览器依赖:
playwright install --with-deps
快速开始
# 用法一: 在原目录下生成同名 .html 文件
mailify-md test.md
# 用法二: 在指定输出目录下生成同名 .html 文件
mailify-md test.md ./output/
# 用法三: 指定输出文件名字和路径
mailify-md test.md ./output/email.html
功能特色
- 结果美观:
- 支持自定义 css 美化
- 支持latex
- 支持代码块(支持代码高亮)
- 针对电脑和手机显示做了优化
- 简单易用:
- 一行命令得到可直接在email使用的html文件
- 内置一些精美样式
- 支持全面:
- 自动处理远程和本地图片
- 支持svg, gif, png等各种图片格式自动内嵌(无需修改你的md文件中的路径)
命令行用法
mailify-md [OPTIONS] INPUT_PATH [OUTPUT_PATH]
参数:
INPUT_PATH: 必须项,你的 Markdown 文件路径。OUTPUT_PATH: 可选项,可以是输出目录或完整的文件路径。- 如果是目录,则输出文件名与输入文件相同。
- 如果省略,则输出在输入文件旁边。
可选项:
-t, --theme TEXT: 设置主题。可以是light,dark, 或一个自定义 CSS 文件的路径。- 示例:
mailify-md test.md -t dark - 示例:
mailify-md test.md -t ./my-style.css - (tip:可参考内置主题css设置)
- 示例:
作为库使用
你也可以在 Python 代码中直接调用 mailify_md: from mailify_md import mailify_md
Metadata
Release files for mailify-md 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailify_md-0.1.5.tar.gz | 359.3 kB | With provenance | Details for mailify_md-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailify_md-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for mailify_md-0.1.5-py3-none-any.whl |
Total release size: 717.6 kB
Release files / mailify_md-0.1.5.tar.gz
| Download URL | mailify_md-0.1.5.tar.gz |
|---|---|
| Size | 359.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fc92c1d1d3ed5def765bc0757677feee522c7c6a257525587b714e702528b11
|
|
BLAKE2b-256 checksum How to use checksums |
966a9327156c6d634b3de3532fc69b2ee49d587ec01913b83713d147eccbaae2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2025.
Transparency logRelease files / mailify_md-0.1.5-py3-none-any.whl
| Download URL | mailify_md-0.1.5-py3-none-any.whl |
|---|---|
| Size | 358.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8d324fdc30cc3e83262476f4ce1d8cc31a8a7a253f677d0bd23c6455d5a571f
|
|
BLAKE2b-256 checksum How to use checksums |
aa6dfff87697770b000fa659f40665d57c81752a4a56c99813ee7a6d4c1f432e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2025.
Transparency logSecurity for mailify-md 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mailify_md-0.1.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.