Hack together a Markdown preview; fix a couple lingering bugs.