Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 718 Bytes

README.md

File metadata and controls

35 lines (30 loc) · 718 Bytes

WechatGen

One-line command for generating wechat post from markdown.

Note: Special markup for author and proofreader.

At the beginning of your markdown post, add:

作者:XXX { .author}
审校:XXX { .proofread}

Requirements

  • pandoc

For installing pandoc, please see the instructions here: pandoc installing

On MacOS, just

brew install pandoc

On Arch linux, just

pacman -S pandoc

Usage

First, make the script executable: Type in terminal:

chmod 755 ${PATH_TO_WECHATGEN}/wechatgen.sh

Then run the script:

${PATH_TO_WECHATGEN}/wechatgen.sh yourmarkdown.md

Please see the simple example in /examples folder.