preview markdown document with live updates
mdwatch is a tool to help you preview your markdown documents. It can detect the changes on the file and automatically serve the rendered page in your brower.
mdwatch is a
Node.js application. So you need to install
Then, you can use
npm to install
sudo npm install -g mdwatch
To monitor a markdown file, simply:
This will start a webserver on port 3000. Now navigate your browser to
http://localhost:3000, you will see the rendered document.
You may use
-p to specify another port.
mdwatch -p 8080 FILENAME
mdwatch also supports syntax highlighting. To enable it, you have to install
pygments first, then use
-c to colorize the code blocks.
mdwatch -c FILENAME