compose.md

compose.md(text)

Process Markdown text to HTML.

Public utility function for converting Markdown strings to HTML.

Parameters

text : str

Markdown text to convert.

Returns

: str

HTML representation of the Markdown.

Examples

from nbmail.compose import md, block_text, compose_email

html = md("This is **bold** and this is *italic*")

# Use in a block
compose_email(body=block_text(html))

This is bold and this is italic