mangini/gdocs2md

Couple of suggestions and a question: add menu, export to hosted doc.

Opened this issue · 2 comments

Firstly, thanks for this great script.

1: Did you know you can add a menu very simply?

function onOpen() {
  DocumentApp.getUi().createMenu('Markdown Conversion')
      .addItem('Convert and email', 'ConvertToMarkdown')
      .addToUi();
}

2: Does anyone know a way of adding this script so it's globally available to all docs in my account rather than adding per doc? I've been trawling through https://developers.google.com/apps-script/scripts_containers and sadly it doesn't look like it can be. I hope I'm wrong though.

3: Would you consider adding support for automatically "pushing" the page to a Google Hosted folder so it can be easily published in 2 clicks using something like Markdown-js.

Finally, thanks again!

  1. Done by lpanebr already in this pull request 4 months ago: #17
  2. lpanebr knows how: #14 (comment)
    but maybe because his simple pull request was ignored made him reluctant to go any further.

Does anyone know a way of adding this script so it's globally available to all docs in my account rather than adding per doc?

Update on this -- Just write one script and use Google Picker for Google Drive (https://gist.github.com/suntong001/8049824) to pick whatever doc you want to convert.