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

🎨 Fix line break and space rendering and align directive margin for code blocks #46

Merged
merged 3 commits into from
Apr 19, 2023

Conversation

GYHHAHA
Copy link
Contributor

@GYHHAHA GYHHAHA commented Apr 2, 2023

Hi, I find when we render the text with \n and space, it will only be considered as single space since the default html behavior. I have a quick fix. The reason we use the font-mono is we have to keep the original character width the same to copy with some formatted output like NumPy array and pandas Series. Besides, the current margin for the code blocks is too big, and I checked the directive block margin is m-4, thus it much better to change this for unified visual experience. @rowanc1

Here is the contrast:

---------------------------------

Thanks!

@welcome
Copy link

welcome bot commented Apr 2, 2023

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.

Welcome to the EBP community! 🎉

@rowanc1
Copy link
Member

rowanc1 commented Apr 3, 2023

This looks great, I will have a closer test today locally and get it in!
Thanks for the PR!!

@rowanc1
Copy link
Member

rowanc1 commented Apr 19, 2023

Thank you again @GYHHAHA for the pull request, sorry it took so long to get in!! This is an awesome improvement. 🚀

@rowanc1 rowanc1 changed the title Fix line break and space rendering and align directive margin for code blocks 🎨 Fix line break and space rendering and align directive margin for code blocks Apr 19, 2023
@rowanc1 rowanc1 merged commit 4ad8313 into jupyter-book:main Apr 19, 2023
@welcome
Copy link

welcome bot commented Apr 19, 2023

Congrats on your first merged pull request in this project! 🎉
congrats

Thank you for contributing, we are very proud of you! ❤️

@GYHHAHA GYHHAHA deleted the patch-1 branch April 19, 2023 02:12
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

Successfully merging this pull request may close these issues.

2 participants