You are not logged in.

#1 2010-04-03 19:46:13

ilembitov
Member
Registered: 2008-10-07
Posts: 124

Live preview for Markdown?

Hi, all.

Being a big fan of pandoc & co, I was wondering how to get a live preview of the output with any given editor (say, vim). Gummi has something like this.

So, what I mean. Given I have vim editing some file with Markdown syntax. I'm using a tiling WM (scrotwm, to be precise), so I want the file to be processed with discount (a lightweight Markdown implementation) into a temporary XHTML file, which, in turn, gets displayed in a next screen area in some lightweight browser (is there a way to use WebKitGTK+ directly for that kind of task, without using any browser?). And the point is that I want the file to be updated live (without having to manually reload the page or save the changes to a file every time I want to see the output) any time I change anything. So it's a kind of pseudo-WYSIWYG mode. How do I do that?

Offline

#2 2010-04-04 09:33:44

FSX
Member
Registered: 2009-08-06
Posts: 57

Re: Live preview for Markdown?

If it's a browser you want to use you can also use Showdown. And maybe you can some sort of filemonitor to check the file for updates.

Offline

Board footer

Powered by FluxBB