Skip to main content

✒️ inkpress

Typography engine for creators — 为创作者打造的排版引擎

Markdown → WeChat / Xiaohongshu / More platforms

25 themes · Zero deps · Free forever

🌐 Live Demo · 📦 Install · 📖 Docs


Features / 特性

  • 25 curated themes across 5 series — classic, oriental, magazine, social, and more
  • Zero dependencies — pure Python core, no external API calls
  • Fully offline — works anywhere, even without internet
  • WeChat optimized — copy-paste directly into WeChat Official Account editor
  • Xiaohongshu ready — formatted content for Xiaohongshu long posts (coming soon)
  • YAML themes — fully customizable, create your own in minutes
  • JS renderer — browser-based 1:1 mirror of the Python engine for live preview

Install / 安装

pip install markdown pygments pyyaml

CLI usage / 命令行使用:

# Convert an article / 转换文章
python -m inkpress convert article.md -t aurora -o output.html

# List all themes / 查看所有主题
python -m inkpress themes

# Start local preview server / 启动本地预览
python -m inkpress serve

Python API:

from inkpress import convert, list_themes

# One-liner / 一行搞定
html = convert("# Hello\nWorld", theme="aurora")

# Browse themes / 浏览主题
for name, desc in list_themes().items():
    print(f"{name}: {desc}")

5 series, 25 handcrafted themes — browse them all online →

5 大系列,25 个精品主题 — 在线预览 →

Series / 系列 Themes / 主题
Classic / 经典 default, minimal, mono, elegant-serif, aurora, ocean, sunset, latte, bluehl, corporate, forest, sunshine
Oriental / 东方 chinese-ink, zen-garden, tang-poetry, sanguo, inkwash
Magazine / 杂志 vogue, bauhaus, editorial, academy
Social / 社交 xiaohongshu, mint, mint-highlight, sakura

Custom Themes / 自定义主题

Drop a YAML file into ~/.inkpress/themes/ — it's that simple.

把 YAML 文件放到 ~/.inkpress/themes/ 即可。

name: "My Theme"
description: "A custom theme"
series: "custom"

h1:
  style: |
    font-size: 24px;
    color: #333;
    font-weight: bold;

paragraph:
  style: |
    font-size: 15px;
    line-height: 1.75;
    color: #444;

See themes/_template.yaml for the full field reference.

完整字段参考见 themes/_template.yaml。


Project Structure / 项目结构

inkpress/          Python core engine / Python 转换引擎
themes/            YAML theme files / YAML 主题定义
showcase/          Static showcase site (GitHub Pages) / 展示网站
skills/inkpress/   Claude Code Skill definition
scripts/           Build scripts / 构建脚本

Use as Claude Code Skill

claude skill install /path/to/inkpress/skills/inkpress

Then say: "帮我用 aurora 主题排版这篇文章" / "Format this article with the aurora theme"


License

MIT — free for personal and commercial use.

Metadata

Release files for inkpress 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inkpress 0.1.0
File Size Uploaded
inkpress-0.1.0.tar.gz 45.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inkpress 0.1.0
File Interpreter ABI Platform
inkpress-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 126.5 kB

Release files / inkpress-0.1.0.tar.gz

Download URL inkpress-0.1.0.tar.gz
Size 45.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c4e4c298c1a83094bbdfbf3f5c54d16c5a15445ca5d199c0cf4ba840fcbabd09
BLAKE2b-256 checksum
How to use checksums
7c5a6296bf3b41f92ba8c3fc6ffe93b80b3881c97bb9255612fd8772cd7bd084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.7

Release files / inkpress-0.1.0-py3-none-any.whl

Download URL inkpress-0.1.0-py3-none-any.whl
Size 80.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
386506d8fd556725a0fd2160936daf4900bc5369a42760c4e2add3aa3ec78dd1
BLAKE2b-256 checksum
How to use checksums
ba370ed3f53b61254d06203067aaf42262c6c78fc59deba40309df4f73fc1e03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page