This is how to set up a Guard script to automatically render markdown previews github style using grip.
- Ruby (RVM recommended)
- Guard
- grip https://github.com/joeyespo/grip
gem install guard
gem install guard-shell
sudo pip install grip
For README.md
# vim: ai ts=2 sts=2 et sw=2 ft=ruby
# vim: autoindent tabstop=2 shiftwidth=2 expandtab softtabstop=2 filetype=ruby
guard :shell do
watch(/README.md/) do |m|
`grip --export`
end
end