Documentation / @zerotal/core / index / markdown
Function: markdown()
markdown(
content,options?,status?):MarkdownBuilder
Defined in: helpers/response.ts:336
Render markdown content and set it as the current response.
Returns a MarkdownBuilder that can optionally chain .withLayout(layoutFn, props)
to re-render the content inside a custom layout. When .withLayout() is called it
replaces the plain markdown response set here with the layout-wrapped version.
Parameters
content
string
options?
BunMarkdownOptions & object
status?
number = 200
Returns
Examples
— plain (backward-compatible)
markdown(content);
— with custom layout
return markdown(content, { title }).withLayout(Layout, { title });