This is a JavaScript
script (more commonly known as a Tampermonkey
/Greasemonkey
script), which automatically converts Zhihu
answers to Markdown.
You need to install a script manager in your browser, such as Violentmonkey
or Tampermonkey
, then add this script to the script manager.
When you open a link like https://www.zhihu.com/question/**/answer/**
, that is, directly clicking into a Zhihu
web page answer, it will automatically parse the content and output Markdown formatted text in the console.
- 1.0 First Version
- 1.1 Support Zhihu zhuanlan
- 1.2 Block referencing support added and bugs fixed.
- 1.3 Support Zhihu homepage with one-click copy feature, please note to expand all before use.
这是一个 JavaScript
脚本(更常见的说法是油猴脚本),实现自动将知乎回答转为 Markdown。
您需要在浏览器中安装一个脚本管理器,比如 Greasemonkey
(暴力猴) 或 Tampermonkey
(篡改猴 ),然后在脚本管理器中添加该脚本。
当您打开诸如 https://www.zhihu.com/question/**/answer/**
的链接,即直接点进一个知乎网页端的回答时,它会自动解析内容,并将 Markdown 格式的文本在控制台输出。
-
1.0 创建版本
-
1.1 支持知乎专栏
-
1.2 支持块引用,修复问答 bug
-
1.3 支持知乎首页,一键复制内容,注意展开全部后再使用