kokoi

kokoi watches for changes on the markup files (Markdown, Textile, reStructuredText...) in the directory kokoi is started, and if they change, automatically reprocesses and previews them directly in the browser. You will work on your files without having to leave your favorite text editor!

The rendered HTML is optionally saved. kokoi is the perfect tool for those who like to keep notes in markup‑formatted files and who are always editing them.

You can also pass, as arguments, multiple markup files, or directories, which will be scanned recursively.

Additional features are, configurable command to process markup files, support for math formulas (rendered with MathJax), and support for custom HTML templates.

Install a markup processing engine such as Pandoc. By default kokoi is configured to watch for changes on Markdown files, and uses Pandoc to convert them, if Pandoc is not installed kokoi will try to use the fallback command markdown. If you want to use a different engine, the appropriate command to convert markup files to HTML must be specified (see Usage).

Then, run npm install kokoi -g in a terminal.

Notes for Linux users:

To install kokoi globally, note that the preceding command must be run as root, also, make sure that npm is installed.

If you installed Node.js from a package manager, the Node.js binary may be called nodejs instead of node, run this command as root ln -s /usr/bin/nodejs /usr/bin/node to create a symlink.