Zhihu on Obsidian Documentation

website·Indexed 29 days ago

https://zhihu.melonhu.cn

A plugin that allows users to publish articles and answers to Zhihu directly from Obsidian. It supports Markdown syntax, image uploads, Mermaid diagrams, LaTeX and Typst formulas, and Zhihu-specific features like card links, table of contents (zhihu-toc), and creation disclaimers.

Tokens
4.7K
Snippets
22
Records
45
Agent score
53%

What's inside Zhihu on Obsidian

  1. Overview of Zhihu on Obsidian plugin

    Zhihu on Obsidian is a plugin designed to integrate Zhihu functionality directly into Obsidian. It aims to eliminate the need to visit the Zhihu website for publishing needs. Key capabilities include publishing articles to Zhihu, browsing Zhihu content, converting Zhihu articles to Markdown for local storage, and managing article cover GIFs.
  2. Browse and import Zhihu content as Markdown

    Users can browse personalized recommendations, followed accounts, and trending lists (hot lists) within the plugin. The plugin provides a one-click feature to convert these Zhihu pages into Markdown format for easy saving and organization in Obsidian.
  3. Use Typst display formulas in Zhihu on Obsidian

    Typst display formulas are created by wrapping Typst code with double dollar signs $$. Note that you must use $$ and not $ + space for display blocks.

    There are two rendering methods available in settings:

    1. Convert to LaTeX: Uses tex2typst to convert Typst to LaTeX. This provides native rendering on Zhihu web and mobile but may not support all Typst-specific symbols.
    2. Convert to Image: Uses the Typst CLI to generate a black-on-white image. This supports all valid Typst code but may look less aesthetic in Zhihu's dark mode.
    $$
    f(z_0) = 1/(2 pi upright(i)) integral.cont_C f(z)/(z - z_0) dif z
    $$
  4. Upload online images to Zhihu

    To upload an online image to Zhihu, use the standard Markdown image syntax. The plugin will automatically download the image from the provided URL and upload it to Zhihu's servers. Supported image formats include: png, jpg, jpeg, gif, bmp, and webp.
    ![caption](https://img.link)
  5. Upload images to Zhihu via image links

    The plugin simplifies the image upload process. By providing a direct image link, the plugin automatically handles the upload of the image resource to Zhihu.
  6. Upload local images to Zhihu

    To upload local images from your Obsidian vault to Zhihu, use the Obsidian internal link syntax. As long as Obsidian can render the image, the plugin will identify and upload it. Do not use the ![[https://img.link]] syntax for online images, as it will fail to preview and upload.
    ![[image|caption]]
  7. Write block (display) mathematical formulas for Zhihu

    To create block-level (centered) mathematical formulas, wrap the LaTeX content with double dollar signs $$ on separate lines. Note that Zhihu's server-side rendering determines if a formula is 'block' based on whether the formula ends with a newline character \ or is associated with a tag; otherwise, it may be treated as inline.
    $$
    I = \int_0^{2\pi} \sin(x)\,dx
    $$
  8. Use common Markdown syntax in Zhihu plugin

    The Zhihu plugin supports most standard Markdown syntax that is compatible with Zhihu's editor. This includes basic formatting for text, lists, code, and media, as well as specialized features like MathJax formulas and user mentions.
    # Level 1 Heading
    ## Level 2 Heading
    
    **Bold Text** and *Italic Text*
    
    > This is a blockquote
    
    1. Ordered item one
    2. Ordered item two
    
    - Unordered item one
    - Unordered item two
    
    `print("Hello")` (Inline code)
    
    ```python
    # Code block
    print("Hello World")

    Google (Link) Logo (Image)

    FruitEnglish
    Appleapple

    --- (Horizontal rule)

    https://github.com (Auto-link)

    @username (Zhihu user mention)

    $e=mc^2$ (Inline MathJax formula) $$\frac{1}{2}$$ (Block MathJax formula)

    Zhihu1 1: Zhihu. https://www.zhihu.com (Footnote/Reference)

  9. Manually install Zhihu on Obsidian from GitHub

    To install the plugin manually, download the latest zip file (e.g., Zhihu-on-Obsidian-version.zip) from the GitHub releases page. Unzip the file and move the resulting folder into your vault's plugin directory, typically located at .obsidian/plugins/. Restart Obsidian to activate the plugin.
  10. Install Zhihu on Obsidian via Community Plugins

    The recommended way to install the Zhihu plugin is through the Obsidian community plugin market. Ensure 'Safe Mode' is disabled, then search for 'Zhihu' in the community plugins list and install the first result.
    # Alternatively, use the obsidian URI to open the plugin page directly:
    obsidian://show-plugin?id=zhihu
  11. Log into Zhihu on Obsidian mobile devices

    Due to mobile platform restrictions, the plugin cannot automatically acquire cookies on mobile. Use one of the following two methods to log in on mobile:

    1. Manual Cookie Transfer: Enable 'Manual Edit Cookies' on the mobile device and copy the cookie JSON from the desktop version of the plugin, then click refresh.
    2. Vault Synchronization: Use a synchronization service like iCloud or OneDrive to sync the Obsidian vault between desktop and mobile; the login state will be synchronized automatically.
  12. Write inline mathematical formulas for Zhihu

    To create inline mathematical formulas, wrap the LaTeX content with single dollar signs $. While double dollar signs $$ may also be rendered as inline formulas on Zhihu, using single dollar signs is recommended to follow GFM (GitHub Flavored Markdown) standards and ensure consistency across platforms.
    Let $f\colon[a,b]\to\R$ be Riemann integrable.