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

Wrap notebook contents in a <div class="jp-Notebook"> #14

Merged
merged 5 commits into from
Mar 5, 2024

Conversation

bevzzz
Copy link
Owner

@bevzzz bevzzz commented Feb 27, 2024

Wrapping the entire notebook in a separate div allows applying common styling for all cells.

This removes the need for custom renderers to do that on their own
Drop superficial nodes with '\n' content --> their only purpose is making
the generated HTML more readable. They should be disregarded during tests.
CSS, if any, is now written during the call to WrapAll.
This only happens once per notebook, so wrapping CSSWriter
into WriterOnce is redundant.

Removed WriterOnce, it's not used anywhere else.

Added a test case for SVG images in html.Renderer.
@codecov-commenter
Copy link

codecov-commenter commented Feb 27, 2024

Codecov Report

Attention: Patch coverage is 90.54054% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 82.60%. Comparing base (7525745) to head (1a26fa4).

Files Patch % Lines
render/html/wrapper.go 90.41% 6 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
+ Coverage   81.86%   82.60%   +0.74%     
==========================================
  Files          11       11              
  Lines         579      575       -4     
==========================================
+ Hits          474      475       +1     
+ Misses         83       76       -7     
- Partials       22       24       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bevzzz bevzzz merged commit 557d7eb into main Mar 5, 2024
1 check passed
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