Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lists have spaces around them #31

Open
nomicode opened this issue Nov 6, 2014 · 3 comments
Open

Lists have spaces around them #31

nomicode opened this issue Nov 6, 2014 · 3 comments

Comments

@nomicode
Copy link

nomicode commented Nov 6, 2014

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.

@fabriciomurta
Copy link

fabriciomurta commented Jun 7, 2017

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

@jackieros
Copy link

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?

@evbacher
Copy link

evbacher commented Jan 9, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants