Notebooks for iPhone Answers

Feature request: have the option to save markdown and html as two separate files

Pedro Kroger, January 23, 2012 22:15

Hi,

If you decide to preview a markdown document with Notebooks, it will delete the txt file and insert the markdown markup in the resulting html file. While this is fine for Notebooks, it breaks compatibility with every other (desktop) editor. Some people may want to edit the original markdown file using emacs, vi or any other markdown editor.

How about having the option to keep the markdown and generated html as two separate files?

Alfons Schmid, January 24, 2012 17:56

Dear Pedro,

when you select "Format Document...", you don't necessarily have to create a "combined" document, you also have the option to "Save as HTML". This leaves the .txt untouched and creates a separate .html version of your document. Isn't that what you are looking for?

Regarding compatibility: there is no problem to open the "combined" version in emacs or any other text editor and edit the embedded plain text version. When Notebooks "sees" the modifications, it will automatically include them into the HTML part.

... but things will improve quite a bit in Notebooks 5 ;-)

Best,
Alfons

Pedro Kroger, January 24, 2012 19:27

Dear Alfons,

I don't know how I missed the "Save as HTML", it works perfectly. Thanks!

I do understand that I can edit the combined version in emacs, but the advantage of editing the stand-alone markdown document is that I can use emac's markdown capabilities (syntax highlighting, hiding the body to show only the outline, inserting sections, etc):

http://jblevins.org/projects/markdown-mode/