Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I love Google Docs. I write notes, essays, correspondences, invoices, journal entries, business ideas, planning documents- everything on there.

I also love the markdown format. I'm a programmer so sometimes I'm in my editor and just want to write things in markdown instead of going to Google Docs.

However, when I save my markdown files in Google Drive, I can't preview them there, which is extremely disruptive to my workflow. Being able to preview markdown files in Google Drive would be a huge improvement.

Is there any way to enjoy the benefits of both Google Docs and markdown? Or are these writing platforms largely incompatible? Any elegant solutions I'm not thinking of?

share|improve this question

migrated from superuser.com May 10 '13 at 14:15

This question came from our site for computer enthusiasts and power users.

7 Answers 7

You can give StackEdit a try. It has a nice integration with Google Drive.

Once you import/export a Markdown document from/to Google Drive, you can open it later directly from Google Drive since StackEdit is integrated as a third party editor/viewer application.

You can find StackEdit as a Chrome application as well on the Web Store.

NOTE: I'm the developer of StackEdit.

share|improve this answer
    
This looks great! When I attempt to import though, it excludes .md files that I have on Google Drive so I can't select them. –  Raine May 12 '13 at 0:35
1  
There is actually a filter in the file picker based on the MIME type (text/x-markdown), not on the file title. That's not very convenient but it allows StackEdit to have its own files associated with it in Google Drive. You will need first to create the file in StackEdit and export it to Google Drive. –  benweet May 12 '13 at 1:40
3  
I just modified the filter from the Google Drive Picker in StackEdit so that you can import text/x-markdown, text/plain, application/octet-stream MIME types. That should solve your problem. –  benweet May 14 '13 at 23:09
1  
Yeah, definitely a great tool, I guess sometime in the near future it will hit hard in the Stack, and hopefully get a tag of its own here in Web Applications :). It already popped in the main Meta: meta.stackexchange.com/questions/202156/written-with-stackedit –  brasofilo Oct 20 '13 at 21:53
1  
@benweet I am really pleased to see the StackEdit and I do like it as an MarkupEditor. Still, there is something that will prevent me from going this way: it is missing the most important features of google docs: the ability to collaborate on the same document, several people editing at the same document, inline-comments, ....that's gold for reviewing. –  sorin Nov 10 '13 at 12:33

You can convert a Markdown document to HTML, and copy/paste the HTML page (not the source) into a Google Drive document. It will retain most of the formatting including headings, lists, links, bold/italic/underline.

The font, margins, and font sizes will not match the Google Drive defaults, and will look "out of place" compared to standard Google Drive documents. Applying a custom CSS file to the HTML document will solve this, making the document look very similar.

I'm not sure about the other direction, converting Google Drive documents to Markdown. It may be possible to export to HTML and use an HTML to Markdown converter.

share|improve this answer

You say you're a programmer, so this answer assumes you'd be comfortable with a little "roll your own" approach.

Google drive supports scripts: http://www.google.com/script/start/

So, you could create a little Showdown viewer that you point to your markdown files (as URLs).

share|improve this answer
    
Yes, I could do this. Thanks! I'm going to poke around some more to see if there's something that already exists. –  Raine May 12 '13 at 0:33
    
And that is what mangini/gdocs2md is - a script. See the answer by trepdatious. –  nealmcb Oct 9 at 23:51

Download and install the Google Drive software. It's for Windows and Mac at the moment, a version for Linux is in the making. The software will create a folder on your computer that syncs with Google Drive. If you open a file in it, it will be opened in the appropriate installed program. Google Drive documents that you open will open in the browser.

This way, you can open/edit markdown files stored on Google Drive in an installed markdown editor.

share|improve this answer

Assuming that once you're done making a document in markdown you want to convert it into a true google document (as opposed to being able to preview the document in the google drive web interface and continue editing in markdown syntax) so that others unfamiliar with markdown can collaborate I've found the following fairly quick:

  1. Create your mark down wherever's convenient.
  2. When done export to the browser
  3. Copy the resulting text from the browser
  4. Paste into a new Google Doc

Google docs is ready to have HTML pasted in so it'll preserve all the headings, spacing, lists, and other formats. Of course this only makes sense if you just want to personally work in markdown, but collaborate with others in a regular google doc.

share|improve this answer

gdocs2md does a good job of converting Google documents to markdown, retaining headers, lists, tables, italics, bold, links and images. I use it to allow shared editing of documents, then export to markdown.

Some care does need to be taken to use formatting in the Google document that maps well to markdown, but this isn't particularly difficult. I've also extended the script to support exporting an entire folder of documents to a new "export" folder on Google Drive, and to slightly improve handling of italic and bold formatting, my fork is here.

share|improve this answer

Also try Markdown Editor, that supports integration with Google Drive.

Disclaimer: I'm the developer of Markdown Editor.

share|improve this answer
1  
Could you perhaps tell us our rights then? You've omitted any mention of licensing. –  Carl Smith Mar 1 at 11:04
    
Do you support math? –  Drazick Apr 18 at 0:52
    
Will you add equations? –  Drazick Jul 27 at 21:21
2  
It is inappropriate to just link to your own page about your own software. That is indistinguishable from spam. Please describe your approach, how it is implemented, and whether it has any advantages over the other approaches described here. –  nealmcb Oct 9 at 23:29
    
I don't think this is spam, per se, but I agree that you should list the features of the product that fulfill the criteria of the actual question that was asked. –  jonsca Oct 10 at 10:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.