VitaliyRodnenko/geeknote — pull request #227 by neilagabriel (2014-09-26 19:55:20+00:00)
Title: Add support for preformatted notes

I prefer to create, edit, and view my notes from within my editor. Therefore, I don't want the content of my notes to be changed in anyway. Unfortunately, as a result of various conversions that geeknote performs (markdown->html->enml->html->text) numerous changes are made to the original note content. It is even possible to lose content. This patch introduces the notion of preformatted notes. When asked to save a preformatted note, geeknote will simply wrap the content with a

block and then wrap the resulting content with the necessary ENML xml header. It will not attempt any markdown to html or text to html conversion. Likewise, when asked to read a preformatted note, geeknote will simply convert the ENML content to HTML and return the content it exacts from the first

block.