Type identifier:
text:extractListItemsCategory: Text Operations
The Text - Extract List Items node parses Markdown-formatted text and extracts items from the first list found in the document. It supports both ordered and unordered lists, including GitHub Flavored Markdown (GFM) syntax. Each list item is returned as a trimmed string in an array.
Handle | Type | Description |
|---|---|---|
|
| The Markdown text containing a list to extract items from. |
Handle | Type | Description |
|---|---|---|
|
| Array of extracted list items as trimmed strings. |
| control | Triggered when extraction fails (no content or no list found). |
This node has no additional configuration options.
error handle if no content is provided or no list is foundInput text:
Here are some items:
- First item
- Second item
- Third itemOutput (listItems):
["First item", "Second item", "Third item"]Input text:
1. Item with **bold** text
2. Item with `code`
3. Item with [link](http://example.com)Output (listItems):
["Item with **bold** text", "Item with `code`", "Item with [link](http://example.com)"]Input text:
# Title
Some paragraph text.
- List item one
- List item two
More text here.Output (listItems):
["List item one", "List item two"]