Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Copy-paste Profiles

For platforms without public APIs, typub generates formatted content that you copy and paste manually.

Audience

  • This page is user-facing and platform-agnostic.
  • For per-platform operation steps, see Platforms Overview.

Basic Usage

typub dev posts/my-post -p wechat

Then:

  1. Open the local preview URL.
  2. Copy rendered content.
  3. Paste into the target platform editor.

Built-in Profiles

HTML Platforms

PlatformDescription
wechatWeChat Official Account
zhihuZhihu columns
toutiaoToutiao/Jinri Toutiao
bilibiliBilibili articles
weiboWeibo articles
baijiahaoBaidu Baijiahao
wangyihaoNetEase Wangyihao
sohuSohu media
sspaiSspai
oschinaOSChina

Markdown Platforms

PlatformDescription
csdnCSDN
juejinJuejin
segmentfaultSegmentFault
cnblogsCnblogs
mediumMedium
jianshuJianshu
infoqInfoQ China
51cto51CTO
tencentcloudTencent Cloud Developer
aliyunAliyun Developer
huaweicloudHuawei Cloud
elecfansElecfans
modelscopeModelScope
volcengineVolcengine Developer

Advanced Customization

Add or adjust built-in profiles (repository contributors)

Profiles are defined in:

crates/adapters/typub-adapter-copypaste/profiles.toml

Example:

[[profile]]
id = "my-platform"
name = "My Platform"
editor_url = "https://my-platform.com/write"
format = "markdown"   # or "html"
# compat = "wechat"   # optional: use wechat-style HTML transforms

Field reference

FieldRequiredDescription
idYesUnique identifier (used in commands)
nameYesHuman-readable display name
editor_urlYesURL to the platform’s editor
formatYeshtml or markdown
compatNoName of a compatibility function for HTML transforms

Compatibility functions

For HTML platforms that need special handling:

CompatDescription
wechatWeChat-specific CSS inlining and formatting

To add a new compat function, implement it in crates/adapters/typub-adapter-copypaste/src/adapter.rs.