MarkdownRendererHelpers
@blockslides/core / MarkdownRendererHelpers
Type Alias: MarkdownRendererHelpers
MarkdownRendererHelpers =
object
Defined in: blockslides/packages/core/src/types.ts:977
Properties
renderChildren()
renderChildren: (
nodes,separator?) =>string
Defined in: blockslides/packages/core/src/types.ts:984
Render children nodes to a markdown string, optionally separated by a string.
Parameters
nodes
The node or array of nodes to render
separator?
string
An optional separator string (legacy) or RenderContext
Returns
string
The rendered markdown string
wrapInBlock()
wrapInBlock: (
prefix,content) =>string
Defined in: blockslides/packages/core/src/types.ts:995
Render a text token to a markdown string
Parameters
prefix
string
The prefix to add before the content
content
string
The content to wrap
Returns
string
The wrapped content
indent()
indent: (
content) =>string
Defined in: blockslides/packages/core/src/types.ts:1002
Indent a markdown string according to the provided RenderContext
Parameters
content
string
The content to indent
Returns
string
The indented content