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)

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!)

Autor
aeonfr
Instalări zilnice
0
Total instalări
14
Rating-uri
0 0 0
Versiune
0.1
Creat
13-09-2016
Actualizat
13-09-2016
Size
2,16 KB
Licență
N/A
Se aplică pe

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.