compose.block_title

compose.block_title(title, align='center')

Create a block of large, emphasized text for headings.

Parameters

title : str

The title text. Markdown will be converted to HTML.

align : Literal['left', 'center', 'right', 'justify'] = 'center'

Text alignment. Default is “center”.

Returns

: Block

A block containing the formatted title.

Examples

from nbmail.compose import block_title

block_title("My Newsletter")

My Newsletter