title: How to convert google doc to clean HTML
body: <p>I am trying to make a web app that whenever called(in my case an ajax request), will return a text output containing the doc in the html form.</p>
  
  <p>I have tried <a href="https://github.com/thejimbirch/GoogleDoc2Html/blob/master/code.js" rel="nofollow noreferrer">GoogleDoc2HTML</a> but it has problem with formatting ordered lists.</p>
  
  <p>The <a href="https://chrome.google.com/webstore/detail/docs-to-markdown/igffnbdfnodiaphfmfaiiaegmoljbghf" rel="nofollow noreferrer">Docs to Markdown add-on</a> provided a correct version of the html.</p>
  
  <p>I have also tried to download the HTML and write a converter myself. Although the lists are working, I don't know how to process the styles(bold, italic...) as those were generated as css included in the header by google doc.</p>
  
  <p>Is there a way to convert a doc to html with a similar format as those produced by the Docs to Markdown add-on? Or is there a way to access the output of the add-on in google app script?</p>