Google Docs and CSS – How to Restyle HTML/Data from a Google Document

cssgoogle docsgoogle-apps-scriptgoogle-drive

I have a list in a Google Document that I would like to restlye with CSS. Unfortunately Google Docs no longer allows using CSS/HTML styling within the app itself. What would I need to do to get information from a Google Document and turn the data into a standalone site styled with my own CSS?n Would it involve using a script of some sort? Scraping the info somehow with Regex? Perhaps the Google Drive API would help me?

Best Answer

Yes you can get the content of a document using Google Apps Script https://developers.google.com/apps-script/reference/document/document-app and generate html output https://developers.google.com/apps-script/reference/html/