diff --git a/README.md b/README.md index fba7771..4d7355d 100644 --- a/README.md +++ b/README.md @@ -4,20 +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 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 - * 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 Manager - - Select "ConvertToMarkdown" function. - - Click Run button (First run will require you to authorize it. Authorize and run again) - - 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: 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() {