gdocs2md icon indicating copy to clipboard operation
gdocs2md copied to clipboard

Lists have spaces around them

Open nomicode opened this issue 10 years ago • 3 comments

A list usually ends up like this:

1. A

2. B

3. C

Which ends up with weird formatting (<p> elements around the list items) when converting to HTML.

nomicode avatar Nov 06 '14 15:11 nomicode

I've just changed the script (among other things) to also glue together lists. I believe it has more code than necessary, but works for me. It seems only problem happens if a list follows a blank line in google docs (then it gets single line break in the end result).

Here's the gist with the updated code: https://gist.github.com/fabriciomurta/0b8479e61686933dfc852ef9e0d122d7

fabriciomurta avatar Jun 07 '17 19:06 fabriciomurta

Using the Export As Markdown googledocs add-on. Voting +1 on the need to output lists (both ordered & unordered) without spaces.

Any chance that you'll update the google docs add-on?

jackieros avatar Jan 04 '18 13:01 jackieros

Check out gd2md-html, a full-blown Docs add-on inspired by Renato's original here. List processing (and many other things) are much improved. Thanks to Renato for pioneering this conversion work!

evbacher avatar Jan 09 '18 04:01 evbacher