-
Notifications
You must be signed in to change notification settings - Fork 464
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
Fix line breaks for li #166
Conversation
- add line break only if addLineBreaks is true - add line breaks only between <li> elements (do not set a line break for the last <li>)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mdimovska and thanks for the PR 😄
Your CircleCI build is failing, probably because of linter errors. Please read the CONTRIBUTING document and it'll show you what command you need to run to fix that. You don't actually need to make any changes except the one to htmlToElement.js
, so for simplicity you might want to just revert the others.
Please also add a test case that covers your change. Cheers!
Hi @richchurcher, sorry for breaking the build. I fixed the linter errors. About the testing, there is already a test case, which I changed a little in order to correspond to the change I made in htmlToElement.js. |
I have questions related to line breaks in other elements (sorry, this is not very related to this PR).
Thanks :) |
This is looking better. When I say add a test case, I mean one like this which specifically tests the Regarding the breaks, I didn't write the original implementation but I can tell you that you can tweak margins fairly effectively if you turn 'em off: #142 (comment). |
Any idea when this is going to be released?! |
Fix line breaks for
<li>
elements:<li>
elements (do not set a line break for the last<li>
, similar as it is done with paragraphs)