Appearance
Rule.io SDK / rcml/src / createInlineContent
Function: createInlineContent()
createInlineContent(
nodes):Json
Defined in: rcml/src/email/create-rcml-element.ts:1323
Wrap a list of inline nodes into a valid content Json doc (one paragraph). Designed for hand-built content with mixed text, placeholders, and loop values — the escape hatch when RFM markdown isn't expressive enough.
Parameters
nodes
readonly InlineNode[]
Ordered inline nodes produced by createTextNode / createPlaceholderNode / createLoopValueNode. Order is preserved.
Returns
A normalized + structurally validated Json content doc, suitable as the content argument to createTextElement / createHeadingElement / createButtonElement.
Throws
When the assembled doc fails structural validation (e.g. malformed placeholder attrs).
Example
ts
createInlineContent([
createTextNode('Hi '),
createPlaceholderNode('Subscriber.FirstName', 169233),
createTextNode(','),
])