Skip to content

Documentation renders email with unexpected gaps #27

@juleswg23

Description

@juleswg23

We see different output for the following code snippet.

from nbmail.compose import compose_email, create_blocks, block_title, block_text

email = compose_email(
    header=create_blocks(block_title("Newsletter")),
    body=create_blocks(
        block_text("Welcome to this week's update!"),
        block_text("Here's what's new..."),
    ),
    footer=create_blocks(block_text("© 2025 My Company"))
)

email

There are more gaps in the docs than in the notebook or the email. As discussed over zoom with @rich-iannone and @machow, there may be an approach to box in the output to ensure nothing propagates into the documentation.

Rendered in the notebook:

Image

Rendered in an email in the gmail client:

Image

Rendered in the docs (extra spacing):

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions