actions-marketplace-validations/md2zhihu

Convert markdown to a single-file by uploading local assets.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 11, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/drmingdrmer_md2zhihu@bede2d74e806fbadde737782051f3c3432aa99a2 # no releases — HEAD as of 2026-07-10

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
patternfile pattern to convertyes**/*.md
output_dirdir to store converted markdown.yes_md2zhihu
asset_repoSpecify the git repo for asset storage. The converted markdown will reference images in this repo. Supported providers include `github.com` and `gitee.com`. When this option is absent, assets are pushed to the current repo `https://github.com/{{ github.repository }}.git`. To push assets to `gitee.com`: 1. On gitee.com, create a access token at https://gitee.com/personal_access_tokens, to enable pushing assets to gitee.com; The token must enable `projects` privileges. 2. Add a secret to the GitHub markdown repository that contains your gitee.com username and token (e.g., `GITEE_AUTH=drdrxp:abcd...xyz`) at `https://github.com/<username>/<repo>/settings/secrets/actions`. 3. Set `asset_repo` to the gitee.com repo push URL with the auth token, such as: `asset_repo: https://[dollar]{{ secrets.GITEE_AUTH }}@gitee.com/drdrxp/bed.git`nohttps://github.com/${{ github.repository }}.git
asset_branchThe branch in which assets are stored. The converted markdown references images at this location. This branch must NOT be removed otherwise the assets will not be accessed.yes${{ github.ref_name }}-md2zhihu-asset
target_platformThe platform that the converted markdown should be compatible to. Currently supported platforms are zhihu, wechat, weibo, simple. `simple` converts almost everything to images and removes most text styles. E.g. inline code block is converted to normal text.yeszhihu
output_branchCommit and push the "output_dir" to a branch of this repo. Set this to "" to disable push, in which case, user commit and push it manually.yes${{ github.ref_name }}-md2zhihu
namedescription
converted_branchThe url of the branch of converted markdowns