Markdown Preview in txti

When EDITING a txti (txti.es/*/edit) in txti.es you should be able to preview your changes (a toggle preview button appears)

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
aeonfr
日安装量
0
总安装量
14
评分
0 0 0
版本
0.1
创建于
2016-09-13
更新于
2016-09-13
大小
2.2 KB
许可证
暂无
适用于

After installing, whenever you're editing a txti you will be able to see a "Toggle Preview" button. It will toggle between a preview of what your txti would look like if you hit "SAVE".

I made this after being very confused with all the different Markdown "variants", like github flavoured markdown.

It fetches an external library for parsing markdown that it's called "showdown". In tampermonkey, the code is: @require https://cdnjs.cloudflare.com/ajax/libs/showdown/1.3.0/showdown.min.js

The script is pretty straight-foward. No malicius code or extra bloatware was included.