Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 396 Bytes

README.mkdn

File metadata and controls

24 lines (17 loc) · 396 Bytes

markdown previewer

(requires pywebkitgtk)

cli:

mkdn.py <file>

in vim:

:!mkdn.py % &

wrap it in a shell script:

mkdn.py "$*" &
${EDITOR:-vim} "$*"
kill %1

template:

~/.mkdn.template (%s will be replaced by content)

commands:

c - copy source to clipboard
s - toggle template
v - toggle view source
any other key will reset the window