🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

知乎专栏 Markdown 扩展支持

Add Markdown Support for Zhihu Zhuanlan Editor

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Aŭtoro
discountry
Ĉiutagaj instaloj
0
Tutaj instaloj
310
Ratings
4 0 0
Versio
0.7
Kreita
2017/05/26
Ĝisdatigita
2017/05/27
Size
2,46 kb
Licenco
N/A
Aplikiĝas al

知乎专栏编辑器Markdown扩展

添加功能

  • 在编辑器工具栏末尾添加了一个一键转Markdown到HTML的按钮
  • 支持粘贴Markdown文字到编辑器中,然后通过点击按钮来转成HTML文本

存在问题

  • [x] 你仍需在别处编写好Markdown一次粘贴进知乎专栏编辑器当中
  • [x] 或者一次性使用Markdown语法在编辑器中写完完整的文章
  • [x] 一键转Markdown到HTML的按钮只能点击一次,第二次点击,转换的HTML文本会丢失格式
  • 转换为html之后二次编辑时需要重新定位光标

更新日志

2017-05-27

  • 支持编辑时自动转回markdown格式
  • 支持知乎自带语法高亮

注意事项

由于Greasy Fork的政策原因,部分脚本无法上传,你需要手动将下载脚本的:

// @require      https://cdn.bootcss.com/marked/0.3.6/marked.min.js
// @require      https://cdn.bootcss.com/to-markdown/3.0.4/to-markdown.min.js

替换为

// @require      https://raw.githubusercontent.com/discountry/marked/master/marked.min.js?v=0.7
// @require      https://raw.githubusercontent.com/discountry/to-markdown/master/to-markdown.min.js?v=0.7

否则部分转换格式会存在bug