Loading...
Loading...
Convert Markdown articles to Zhihu publishing format and enable one-click article publishing. This tool is applicable when users need to publish Markdown content to Zhihu, convert articles for Zhihu, or when terms like Zhihu, Zhihu Column, Zhihu Publishing, or Publish to Zhihu are mentioned.
npx skill4agent add zhenxuanshi-ship-it/meatpiegua_skills md-to-zhihu# Dependencies for format conversion
pip install markdown pygments beautifulsoup4
# Dependencies for one-click publishing (optional, required only for publishing)
pip install playwright requests
playwright install chromiumpython ~/.cursor/skills/md-to-zhihu/scripts/convert.py input.md| Parameter | Description | Default Value |
|---|---|---|
| Path of the input Markdown file | Required |
| Path of the output HTML file | |
| Theme style | |
| Output pure HTML content only (for API publishing) | No |
| Batch conversion: specify directory path | - |
# Convert all .md files in the directory
python ~/.cursor/skills/md-to-zhihu/scripts/convert.py --dir ./articles
# Batch conversion with specified theme
python ~/.cursor/skills/md-to-zhihu/scripts/convert.py --dir ./articles --theme tech# First-time use: Log in to Zhihu and save Cookie
python ~/.cursor/skills/md-to-zhihu/scripts/publish.py --login
# Publish article
python ~/.cursor/skills/md-to-zhihu/scripts/publish.py input.md
# Save as draft
python ~/.cursor/skills/md-to-zhihu/scripts/publish.py input.md --draft
# Specify title and topics
python ~/.cursor/skills/md-to-zhihu/scripts/publish.py input.md --title "Article Title" --topic "AI,Programming"# Batch publish all .md files in the directory
python ~/.cursor/skills/md-to-zhihu/scripts/publish.py --dir ./articles
# Batch save as drafts
python ~/.cursor/skills/md-to-zhihu/scripts/publish.py --dir ./articles --draft
# Batch publish with specified topics and custom interval (default 60s)
python ~/.cursor/skills/md-to-zhihu/scripts/publish.py --dir ./articles --topic "AI,Programming" --delay 30| Parameter | Description | Default Value |
|---|---|---|
| Batch publishing: specify directory path to publish all .md files | - |
| Interval (in seconds) between publishing each article (to avoid rate limits) | |
| Only save as draft | No |
| Article topics, separated by commas | - |
Ctrl+V--login--login