Skip to content

Repository files navigation

Wechat Publisher

Format Obsidian Markdown notes for WeChat public account articles.

Wechat Publisher is a local-first Obsidian community plugin. It converts the current note or selected Markdown text into inline-styled HTML that can be pasted into the WeChat public account editor.

Features

  • Convert Markdown notes to styled HTML
  • Preview formatted articles in Obsidian
  • Copy formatted content to clipboard as text/html and text/plain
  • Copy selected Markdown text only
  • Built-in themes for public account articles
  • Custom colors, font size, line height, and paragraph spacing

Usage

  1. Open a Markdown note.
  2. Run Wechat Publisher: Preview current article.
  3. Choose a theme if needed.
  4. Click Copy formatted article.
  5. Paste into the WeChat public account editor.

You can also run:

  • Wechat Publisher: Copy formatted article
  • Wechat Publisher: Copy selected text as formatted article
  • Wechat Publisher: Open settings

Privacy

This plugin works locally. It does not upload your notes, collect analytics, or send content to any remote server.

本插件在本地运行,不上传笔记内容,不采集数据,不连接远程服务器。

Limitations

  • Local Obsidian images cannot be pasted directly into the WeChat editor. Upload or replace them manually in WeChat.
  • The preview may show local images through Obsidian resource paths, but copied HTML uses a local-image placeholder.
  • Some styles may be adjusted by the WeChat editor after paste.
  • Complex tables may be simplified by WeChat.

Development

npm install
npm run dev

Build release files:

npm run build

Release 1.0.0 should include:

  • main.js
  • manifest.json
  • styles.css

The release tag must be 1.0.0, not v1.0.0.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages