I’ve posted code for AsciidocEdit, a MacOS editor/viewer for Asciidoc on github. It is now at version 0.1, but it does work. (You will need Xcode beta 6 or later to compile it; it is written in Swift).
Asciidoc is a markup language that
- Is human readable
- Can produce output in HTML, PDF, EPUB3, and more
Documents in Asciidoc can include media (image, audio, video), and, most importantly for me, can do mathematics. It is a great way of writing lecture notes to post on the web. Basically, you enclose latex in the appropriate delimiters:
\(a^2 + b^2 = c^2\) for inline math, \[ a^2 + b^2 = c^2 \], for display math. These may be additionally enclosed in +…+ if need be. You can find examples of web pages built with Asciidoc, at www.hoteshare.io (beta version 0.2).
Asciihelper, pictured below, has two panes in its main window. On the left is the “source code”. On the right is the rendered HTML. All this works through the magic of Asciidoctor, a truly wonderful (powerful, fast, rationally designed) Ruby processor for Asciidoc.