Instantly share code, notes, and snippets.

What would you like to do?

On the OS X bash command line

brew install multimarkdown
brew install fswatch

echo '#!/bin/bash
multimarkdown --full "" > /tmp/file.html && open -g /tmp/file.html' > /tmp/ && chmod +x /tmp/; fswatch -o "" | xargs -n1 /tmp/

Safari reuses the same tab for opening a URL that is already open, so it will simply keep refreshing the same file.html tab every time you save changes to Who needs a dedicated markdown editor with an integrated preview window?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment