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.
I have tried GoogleDoc2HTML but it has problem with formatting ordered lists.
The Docs to Markdown add-on provided a correct version of the html.
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.
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?