GoogleDoc2Html
GoogleDoc2Html copied to clipboard
Export Google Doc as clean html. Handy to make a Wordpress post from Google Doc.
Can you please add a license for this code? Is it open? MIT License? Thank you!
The code used to add a \ after the first list item of unordered lists. This change removes that. The lists are still closed correctly by a different \ later.
I had a slightly different experience, most likely to Google changing their flow. I thought I would update your instructions as a thank you. Thank you! Great tool.
Thanks to thejimbirch the new sript is here: https://raw.githubusercontent.com/oazabir/GoogleDoc2Html/27a559acedc6384cf204b223913702cedcfda9a9/code.js The updated instructions based on Google Docs Changes are here: https://github.com/oazabir/GoogleDoc2Html/pull/1/files
This script is working almost exactly as I need it, but for one crucial thing. The `processText` function uses `getTextAttributeIndices()` to work out where bold, links, italics etc start and...
…my export, this null check fixes it and keeps it from failing
I just wanted to let you know that the mail I received have some missing link, and the dirty google html code remains.
Hey Omar—as far as I could tell, GoogleDoc2HTML didn't support in-line links. Using Google's getlinkUrl() and partAtts.LINK_URL, I managed to in-line it without too much trouble.
Don't think is required