-
Notifications
You must be signed in to change notification settings - Fork 310
FIX: remove additional vertical whitespace in Firefox for list entries with line breaks #91
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
Conversation
|
I'm not sure why the tests are failing. As I'm not familiar with the codebase and I didn't find specific documentation, I just assumed I'd need to manually adjust |
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
1d09e7d to
7d2d0b9
Compare
|
so I figured out how to update the test snapshots, I've also rebased this PR on current master and I've updated the description to be a little more precise |
|
Hey! Thank you for your PR! While I see your issue you are having, I feel like this is a bandaid and not a real fix. I think the real fix would be to not include For example, imagine you have a markdown compiler and it has a bug that it spits out double This PR will also change some of the specificity that can have issues for other people. So while I appreciate the PR, I don't think that this is our responsibility to fix the issue of having So if you do want to fix this, than I think the best solution for you would be to:
Here is an example on how to put a simple version in your own tailwind config: https://play.tailwindcss.com/77Q5Mhpghf?file=config |
|
Thank you very much for your detailed feedback! <ul>
<li>
<p>
"A kékszakállú herceg vára"<br />
("Herzog Blaubarts Burg")</br>
HERZOG
</p>
</li>
</ul>thanks in advance for a quick confirmation, so I can report this correctly to the markdown processor! |
|
While I can see that you don't want to fix issues of markdown compilers I don't think this it that kind of issue. Firefox does apply margins on |
|
Did some more digging: There are a few more inline elements, which make the |
|
interesting find @LostKobrakai |
|
Even other inline tags are considered |
fixes #68 by excluding
brelements from getting top and bottom margin applied to.prose > ul > li > *:first-childby adding:not(br)I'm using
@nuxt/contentwhich uses remark and rehype for Markdown processing and generates this sort of html output:from Markdown content like this:
before:
after:
consistent styling in Firefox and Chromium