Type identifier:
text:parseMarkdownToContentCategory: Text Operations
Parses Markdown text into rich content. Converts Markdown elements into structured content nodes. Handles code blocks, including automatic stripping of Markdown code fences if wrapping the entire content.
Handle | Data Type | Required | Description |
|---|---|---|---|
|
| No | Markdown string (if dynamic) |
markdownstringNotes:
Handle | Data Type | Description |
|---|---|---|
|
| Parsed rich content |
contentContentNotes:
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label |
|
| Yes |
| Markdown source |
markdownstring, literal or dynamicVariants:
{ type: "dynamic" }: Use markdown input handle{ type: "literal", value: "..." }: Use static Markdown textIf the entire content is wrapped in markdown code fences:
```markdown
# Content here
```The fences are automatically stripped before parsing.
Markdown Element | Content Node Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
| Code text |
|
|
|
|
| Bold text |
| Italic text |
Scenario | Behaviour |
|---|---|
Parse failure | Throws error |
Link with a non-http(s) scheme (for example, | Throws error |
Invalid Markdown | Best-effort parsing |
{
"type": "text:parseMarkdownToContent",
"data": {
"label": "Parse AI Response",
"markdown": { "type": "dynamic" }
}
}Connect the Markdown string to the markdown input handle.
{
"type": "text:parseMarkdownToContent",
"data": {
"label": "Parse Static Content",
"markdown": {
"type": "literal",
"value": "# Welcome\n\nThis is **bold** and *italic* text."
}
}
}{
"type": "text:parseMarkdownToContent",
"data": {
"label": "Format LLM Output",
"markdown": { "type": "dynamic" }
}
}Connect the LLM response to the markdown input handle to parse formatted output.