Text - Parse Markdown to Content
Type identifier:
text:parseMarkdownToContentCategory: Text Operations
Description
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.
Input Handles
Handle | Data Type | Required | Description |
|---|---|---|---|
|
| When dynamic | Markdown string (if dynamic) |
Input Handle Details
markdown
- Type:
string Notes:
- Accepts raw Markdown text
- Automatically strips wrapping code fences
- Must be a string; empty Markdown is accepted
Output Handles
Handle | Data Type | Description |
|---|---|---|
|
| Parsed rich content |
Output Handle Details
content
- Type:
Content Notes:
- Includes paragraphs, headings, code blocks, and lists
- Preserves formatting and structure
Configuration Options
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label |
|
| Yes |
| Markdown source |
Configuration Details
markdown
- Type:
string, literal or dynamic Variants:
{ type: "dynamic" }: Usemarkdowninput handle{ type: "literal", value: "..." }: Use static Markdown text
- Notes: Allows embedding Markdown directly or sourcing dynamically
Behaviour
Execution Flow
- Resolves Markdown source (literal or dynamic)
- Strips wrapping code fences if present
- Parses Markdown to content
- Returns structured content
Code Fence Stripping
If the entire content is wrapped in markdown code fences:
```markdown
# Content here
```The fences are automatically stripped before parsing.
Markdown Conversion
Markdown Element | Content Node Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
| Code text |
|
|
|
|
| Bold text |
| Italic text |
Error Handling
Scenario | Behaviour |
|---|---|
Parse failure | Throws error |
Link with a non-http(s) scheme (for example, | Throws error |
Invalid Markdown | Best-effort parsing |
Parsing failures publish no content value. This node has no error output handle.
Examples
Dynamic Markdown Input
{
"type": "text:parseMarkdownToContent",
"data": {
"label": "Parse AI Response",
"markdown": { "type": "dynamic" }
}
}Connect the Markdown string to the markdown input handle.
Static Markdown
{
"type": "text:parseMarkdownToContent",
"data": {
"label": "Parse Static Content",
"markdown": {
"type": "literal",
"value": "# Welcome\n\nThis is **bold** and *italic* text."
}
}
}Parse LLM Response
{
"type": "text:parseMarkdownToContent",
"data": {
"label": "Format LLM Output",
"markdown": { "type": "dynamic" }
}
}Connect the LLM response to the markdown input handle to parse formatted output.