Started work on export handler, and adjusted read-only mode so it's a little closer to read-write mode, and uses pagedown for conversion so syntax highlighting works.