gd2md-html
gd2md-html copied to clipboard
HTML conversion doesn't properly convert text that's center aligned
Thank you for writing this software! It's awesome.
When I convert something to HTML, stuff that is center aligned in the Google doc gets converted to left justified in the HTML. If it's right-justified in the Google doc, then it converts properly to HTML, but not center.
Is this intended behaviour, or is this a bug?
Thanks!
Also, a particular request, if you do fix this. The site I'm posting to doesn't seem to obey the "text-align:center code, but it does obey < center > < /center > (with proper code removed or it centered my text and disappeared my code examples). Would it be possible to have an option for center to work that way?
I am having the same issue. Centered text has no modification in the HTML conversion.
Sorry I missed this -- it should be possible, since there is a horizontal alignment attribute for paragraphs in Google Docs. I'm leaving a link to the docs for myself when I get to this: https://developers.google.com/apps-script/reference/document/attribute.
I do have a bit of time and I'm trying to fix a few of the outstanding bugs and maybe add some nice features as well.
I'm not sure what site you're posting to, but I'll probably implement this as <p style="text-align: center"> instead of using <center> tags.
Note: GitHub wiki doesn't seem to observe either tag: all the test paragraphs are left-justified :(