Zhihu

by dgg
5
4
3
2
1
Score: 50/100

Description

The Zhihu plugin lets you draft, publish, and manage Zhihu articles and answers directly from your notes. Once logged in via web authentication, you can turn markdown files into Zhihu ready posts, attach relevant topics, and sync content as either articles or answers tied to specific questions. The plugin supports cover images, card-style links, LaTeX, automatic image handling, and generates tables of contents if needed. You can browse Zhihu recommendations, followings, and trending lists right inside your workspace, saving interesting content for future reference. Mentioning Zhihu users is seamless with @ syntax, and editing published articles or answers is just as easy.

Reviews

No reviews yet.

Stats

232
stars
3,724
downloads
16
forks
292
days
0
days
11
days
54
total PRs
0
open PRs
1
closed PRs
53
merged PRs
86
total issues
19
open issues
67
closed issues
0
commits

RequirementsExperimental

Latest Version

11 days ago

Changelog

[!NOTE] 本次更新需要 Obsidian 版本 1.8.4 以上,因为需要使用核心插件:网页浏览器。

Fix

  • 修复了两行之间仅有一个换行符时,会丢失加粗、斜体等样式的问题 #144 ,感谢 @WanhaoZhang

README file from

Github

中文 README | TELEGRAM | DOCUMENTS

Features

This plugin allows you publish your markdown file directly to Zhihu, a Chinese question-answer platform. The main features include:

  • create and publish Zhihu articles
  • create and publish Zhihu answers
  • submit your article to Zhihu question.
  • browse customized Zhihu recommendations, followings and hot lists.

Usage

Install

Search Zhihu in community plugin, click the first plugin and install.

Login to Zhihu

The login feature requires Obsidian core plugin: web viewer, which is disabled by default. You should enable it in settings-Core plugins before login.

You can login to Zhihu by the command Zhihu: Web login, then you will see a web login page. Open Zhihu app and scan it, the plugin will fetch all cookies and user data automatically. (The plugin will never, ever upload your information)

image-20250503144240817

Open the settings->Zhihu Obsidian, an account and avatar indicates that the login is successful.

settings

Publish Articles

After you login, you can publish answers and articles to Zhihu. Here is the process:

Open command palette, type Zhihu: Create new article, the plugin will automatically create a zhihu article draft and a markdown file.

new_draft

The created markdown file have three frontmatters:

  • zhihu-title: default untitled, you may change it before publish.
  • zhihu-topics: default none, you should add some, it is also required.
  • zhihu-link: URL to your draft or articles

After you typed some markdown and ready to publish, you can run command Zhihu: Publish current article. After doing that, the plugin will translate your markdown to Zhihu featured HTML, and publish it to Zhihu. You may wait a few seconds before you can actually see the article on Zhihu.

Publish answers

Open command palette, type Zhihu: Create new answer, the plugin will ask you to enter the question link. For example, you would like to answer question https://www.zhihu.com/question/1900539734356390396. Type the link to the modal and press enter, a new answer draft will be created.

new_answer_draft

There are no properties you should fulfill, just type your thoughts or experience and run command Zhihu: Publish current answer. That's it, the answer URL then appear in the zhihu-link property. You can also edit your answers anytime with the same command.

It is worth mentioning that you can't create two answers in one question, witch means that if you've created an answer (or answer draft) for a question, you can't create it again. In this situation, you should manually edit properties: zhihu-question and zhihu-link. Then run publish command will update your answer.

Browsing

The plugin can also browse Zhihu recommendations, followings and hot lists. By clicking left side Zhihu icon (Chinese character ), you can directly view answers or articles in Obsidian. The markdown file will saved in vault/zhihu/

recommend

The LaTeX syntax is shown natively.

follow

Syntax

At Zhihu members

Just type @ and magic appears. You can select anyone by press enter or just click on it. Click the @ link can bring you to the homepage of the zhihu member.

at_members

The syntax of at link is [@name](https://www.zhihu.com/member_id "member_mention + hash")

It also dead easy to change your link into card. For example, you can use that to change GitHub link into a card titled Github.

[Github](https://github.com/ "card")

The result:

github_card

Images

Just insert your images with markdown syntax, and the plugin will do the rest. If the images are local, use the Obsidian flavored ![[image|caption]] syntax. If the images are online, use GFM syntax: ![caption](https://img.link). The plugin will automatically download the URL and upload to Zhihu.

Please DO NOT use the ![caption](https://raw.githubusercontent.com/dongguaguaguagua/zhihu_obsidian/HEAD/...) syntax for local images, or they may not be uploaded properly.

Article cover

The plugin also support adding your favorate cover to the article. Just add zhihu-cover entry to properties and select pictures using [[img]] syntax. Like that

cover_example

Table of contents

Add zhihu-toc entry to frontmatter, and ensure it is not empty, then table of content will be generated.

For example, zhihu-toc can be True or 1.

If you don't add zhihu-toc, then the table of content will not be generated.

Contribution

Any PRs are welcome.

You can fork this repo to vault/.obsidian/plugins, make sure your NodeJS is at least v16

  • npm i or yarn to install dependencies.
  • npm run dev to start compilation in watch mode.
  • npm run build to build a release.

TODO

  • add: mermaid support
  • add: desmos-graph support
  • add: reference syntax
  • add: view upvotes number in status bar
  • add: view comments
  • add: upload your images on cloud
  • add: publish articles to your column

Support

You can support me by star⭐ the repo!

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Publish to WordPress for Obsidian
4 years ago by devbean
An obsidian plugin for publishing docs to WordPress.
Digital Garden
4 years ago by Ole Eskild Steensen
Publish to Steemit
4 years ago by anpigon
Post directly to your Steemit from Obsidian.
Telegraph Publish
4 years ago by Reorx
Publish your Obsidian note to a Telegraph page.
Obsius Publish
4 years ago by Jon Grythe Stødle
Easily publish notes to the web This plugin integrates with obsius.site to publish markdown notes on the web.
Enveloppe
4 years ago by Mara-Li
Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
Micro.publish
4 years ago by Otavio Cordeiro
Micro.publish is an Obsidian plugin to publish notes directly to Micro.blog, written in TypeScript
Webpage HTML Export
3 years ago by Nathan George
Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
O2
3 years ago by haril song
Converts obsidian markdown syntax to other platforms.
Mixa
3 years ago by Mixa Team
Publish your notes and blog posts directly from Obsidian with Mixa
File Publisher
3 years ago by Devin Sackett
Flowershow
3 years ago by Rufus Pollock
Publish your Obsidian vault as a website with Flowershow.
Invio
3 years ago by frontend-engineering
Publish obsidian docs online
Quail
3 years ago by Lyric
An Obsidian Plugin for Quail.ink. This is a clone repo of https://github.com/quail-ink/obsidian-quail
Nostr Writer
3 years ago by James McGauran
Publish seamlessly from Obsidian to Nostr
Writeas Blog Publisher
3 years ago by encima
Pickly PageBlend
3 years ago by Dmitrii Mitrichev
The easiest way to share your Obsidian notes
screen.garden
3 years ago by screengarden, LLC
Realtime collaboration and web editing for Obsidian.
Permalink Opener
3 years ago by @kepano
Obsidian plugin to open URLs based on a permalink or slug in the note properties. For use with Jekyll, Hugo, Eleventy, Astro, Obsidian Publish, and other publishing tools.
Halo
3 years ago by Ryan Wang
Publish your Obsidian documents to Halo.
Moon server publisher
3 years ago by Roman Provazník
Publish URL
2 years ago by Hananoshika Yomaru
copy the publish url to clipboard
Omg.publish
2 years ago by May Meow
An obsidian plugin to create statuslog posts right from obsidian notes.
syncread-assistant
2 years ago by flyer1b
MBlog Publish
2 years ago by Jerry
Orion Publish
2 years ago by Sean Collings
NotesOn Publish
2 years ago by Andrey Shapkin
Plugin to Obsidian.md
Hugo Publish
2 years ago by kirito
write blog in obsidian, pubulish to hugo site.
Google Blogger
2 years ago by Hugo Sansaqua
A plugin for publishing Obsidian documents to Blogger.
Infostacker Note Publish
2 years ago by Taskscape LTD, Patryk Nowak, Kacper Pabianiak
Infostacker plugin for Obisidian
Wechat Public Platform
2 years ago by Blake Chan
Obsidian Wechat public Plugin (微信公众平台) is a plugin to release article from your Obsidian Vault to WeChat, Baidu baiJiahao or other platforms.
Publish to DEV
2 years ago by Peter Strøiman
Obsidian plugin to publish to dev.to
Dataview Publisher
2 years ago by UD
Output markdown from your Dataview queries and keep them up to date. You can also be able to publish them.
Hexo Publisher
2 years ago by zhenlohuang
Vitepress Publisher
2 years ago by mistj
Obsidian Vitepress Plugin is a flexible tool that allows you to easily preview and compile your .md files using VitePress or other static site generators (Hugo, Hexo, Docusaurus) in Obsidian.
Vault to blog
2 years ago by barkstone2
Automation tool of making react SPA blog by obsidian vault.
Embedded Code Title
5 years ago by tadashi-aikawa
It is an Obsidian plugin which can embeds title to code blocks.
OzanShare Publish
5 years ago by Ozan Tellioglu
This plugin allows you to publish your markdown notes with a single click directly from your Obsidian vault.
Publish and GitHub URL
4 years ago by kometenstaub
Copy or open the Obsidian Publish URL of a note. You can also open its Git commit history on GitHub.
Typefully
2 years ago by Sébastien Dubois
Integrate Typefully within Obsidian
Friday
a year ago by sunwei
Write anywhere. Publish everywhere. Sync your notes, publish instantly, turn Markdown into websites.
AmpliFlow Page Publisher
a year ago by Patrik Björklund
The offifical AmpliFlow obsidian page publisher.
Publish to Discourse
a year ago by woodchen
Obsidian plugin for publishing articles to forums built with Discourse. obsidian插件, 用于把文章发布到使用discourse搭建的论坛.
Forms
a year ago by Sorin Mircea
YourPulse - Your Writing Activity Visualised
a year ago by Jiri Sifalda
YourPulse.cc - Obsidian.md plugin that turns your vault into a reflection of your creativity, and put your writing on steroids 💪
Jade Publisher
a year ago by Lucas Ji
This is a simple plugin to help publish your Obsidian vault to a public website(build with Jade).
WeWrite
a year ago by Learner Chen
Obsidian plugin to render note as WeChat MP article.
Enhanced Publisher
a year ago by Cube
增强的Obsidian发布插件,支持图片自动存储、HTML预览和发布到微信公众号等内容平台
Yuque Publish
a year ago by oylbin
obsidian plugin to publish document to yuque
Typecho
a year ago by Chen
obsidian同步Typecho
MP Preview
a year ago by Yeban
一个帮助你快速将 Obsidian 笔记转换为微信公众号格式的插件。
Quartz Syncer
10 months ago by Emile Bangma
Manage and publish your notes to Quartz, the fast, batteries-included static-site generator.
Publish Note to Mowen Note
9 months ago by ziyou
This is a mowen plugin for Obsidian (https://obsidian.md)
umbPublisher
9 months ago by Owain Williams
An Obsidian Plugin that allows you to push notes to Umbraco 15+ as content nodes
Content OS
8 months ago by eharris128
Post to LinkedIn from within Obsidian
Local RSS
7 months ago by onikun94