From 44c9700ada4e7e2ef89857685ccdda5db80fefd8 Mon Sep 17 00:00:00 2001 From: Casey Bisson Date: Fri, 20 Jul 2018 11:50:41 -0700 Subject: [PATCH 1/3] Update for UI changes From https://github.com/mangini/gdocs2md/pull/60 --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fba7771..b978d94 100644 --- a/README.md +++ b/README.md @@ -7,15 +7,16 @@ A simple Google Apps script to convert a properly formatted Google Drive Documen * Adding this script to your doc (once per doc): * Open your Google Drive document (http://drive.google.com) - * Tools -> Script Manager > New - * Select "Blank Project", then paste this code in and save. - * Clear the myFunction() default empty function and paste the contents of [converttomarkdown.gapps](https://raw.github.com/mangini/gdocs2md/master/converttomarkdown.gapps) into the code editor + * Tools -> Script editor + * File -> New -> Script file (or reuse the default Code.gs file in the project) + * Delete the default empty function myFunction() and paste the contents of [converttomarkdown.gapps](https://raw.github.com/mangini/gdocs2md/master/converttomarkdown.gapps) into the code editor * File -> Save * Running the script (run as many times as you want): - - Tools > Script Manager - - Select "ConvertToMarkdown" function. - - Click Run button (First run will require you to authorize it. Authorize and run again) + - Tools -> Script editor + - Ensure that the correct script file is selected in the project. + - In the taskbar, click "Select function" and select "ConvertToMarkdown". + - Click the Run button (First run will require you to authorize it.) - Converted doc with images attached will be emailed to you. Subject will be "[MARKDOWN_MAKER]...". From 095e106302d5dbcfe466048442a896e1dec5e8d0 Mon Sep 17 00:00:00 2001 From: Casey Bisson Date: Fri, 20 Jul 2018 11:56:38 -0700 Subject: [PATCH 2/3] Update usage for new Google Docs UI --- converttomarkdown.gapps | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/converttomarkdown.gapps b/converttomarkdown.gapps index 1402b42..b3d63a4 100644 --- a/converttomarkdown.gapps +++ b/converttomarkdown.gapps @@ -1,13 +1,16 @@ /* Usage: - Adding this script to your doc: - - Tools > Script Manager > New - - Select "Blank Project", then paste this code in and save. + Adding this script to your doc: + - Open your Google Docs document + - Tools > Script editor + - Delete the default empty function myFunction() and paste the contents of this file into the code editor + - Save Running the script: - - Tools > Script Manager - - Select "ConvertToMarkdown" function. - - Click Run button. - - Converted doc will be mailed to you. Subject will be "[MARKDOWN_MAKER]...". + - Tools > Script editor + - Select the code file with the "ConvertToMarkdown" function + - In the taskbar, click "Select function" and select "ConvertToMarkdown" + - Click the Run button (first run will require you to authorize it) + - Converted doc will be mailed to you. Subject will be "[MARKDOWN_MAKER]..." */ function ConvertToMarkdown() { From f214671d81592b24fd927eba45e7ef1c431f893d Mon Sep 17 00:00:00 2001 From: Casey Bisson Date: Fri, 20 Jul 2018 12:01:44 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b978d94..4d7355d 100644 --- a/README.md +++ b/README.md @@ -4,21 +4,20 @@ gdocs2md A simple Google Apps script to convert a properly formatted Google Drive Document to the markdown (.md) format. ## Usage + Running the script: - * Adding this script to your doc (once per doc): - * Open your Google Drive document (http://drive.google.com) - * Tools -> Script editor - * File -> New -> Script file (or reuse the default Code.gs file in the project) - * Delete the default empty function myFunction() and paste the contents of [converttomarkdown.gapps](https://raw.github.com/mangini/gdocs2md/master/converttomarkdown.gapps) into the code editor - * File -> Save +* Adding this script to your doc (once per doc): + * Open your Google Docs document + * Tools > Script editor + * Delete the default empty function myFunction() and paste the contents of the `converttomarkdown.gapps` file into the code editor + * File > Save - * Running the script (run as many times as you want): - - Tools -> Script editor - - Ensure that the correct script file is selected in the project. - - In the taskbar, click "Select function" and select "ConvertToMarkdown". - - Click the Run button (First run will require you to authorize it.) - - Converted doc with images attached will be emailed to you. Subject will be "[MARKDOWN_MAKER]...". - +* Running the script (run as many times as you want): + * Tools > Script editor + * Select the code file with the `ConvertToMarkdown` function + * In the taskbar, click "Select function" and select `ConvertToMarkdown` + * Click the Run button (first run will require you to authorize it) + * Converted doc will be mailed to you. Subject will be "[MARKDOWN_MAKER]..." ## Interpreted formats * Text: