yr.markdown
markdown(
content: str,
) → NoneRender a markdown block.
Can be called directly to emit a single block, or used as a stream handle to append further chunks over time.
Parameters
content
type: str
the markdown content to display
Examples
Emit a complete block immediately, then build another block over several streamed updates:
import yera as yr
yr.markdown(
"## Recipe of the day\n\n"
"Today's recipe is **lemon risotto**."
)
with yr.markdown.stream() as progress:
progress.append("Preparing the ingredients")
progress.new_line("Cooking the rice")
progress.new_line("Adding lemon and parmesan")