diff --git a/README.md b/README.md index 513cc64..c1d6e1d 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,15 @@ 1. Open your Google Doc and go to Tools menu, select Script Editor. You should see a new window open with a nice code editor. 2. Copy and paste the code from here: [GoogleDocs2Html][1] - 3. Then from the "Select Editor" menu, choose ConvertGoogleDocToCleanHtml - 4. Click the play button to run the script. - 5. You will get an email containing the HTML output of - the Google Doc with inline images. - 6. You can easily forward that email to anyone or copy and paste in a Wordpress post. - + 3. Go to the File menu and Save the file the script as GoogleDoc2Html. + 4. Then from the Run menu, choose ConvertGoogleDocToCleanHtml + 5. A popup window will appear titled, Authorization required. + Click continue to grant the following permissions: + Know who you are on Google + View your email address + View and manage your documents in Google Drive + Send email as you + 6. You will get an email at your Google Account containing the HTML + output of the Google Doc with inline images. - [1]: https://raw.githubusercontent.com/oazabir/GoogleDoc2Html/master/code.js + [1]: https://raw.githubusercontent.com/thejimbirch/GoogleDoc2Html/master/code.js diff --git a/code.js b/code.js index b852e6a..3bf8222 100644 --- a/code.js +++ b/code.js @@ -99,7 +99,7 @@ function processItem(item, listCounters, images) { if (gt === DocumentApp.GlyphType.BULLET || gt === DocumentApp.GlyphType.HOLLOW_BULLET || gt === DocumentApp.GlyphType.SQUARE_BULLET) { - prefix = '