Modifier Blocks
Extract Markdown Table Blocks
Extract table blocks from markdown-formatted text
Overview
The Extract Markdown Table Blocks block is designed to parse markdown-formatted text and extract all table blocks within it. This is particularly useful when working with documentation, README files, or any text that contains tables in markdown format.
Inputs
The markdown-formatted text from which to extract table blocks.
Outputs
The first table block found in the input markdown, converted to a Table value. If no table blocks are found, this output will be control-flow-excluded.
An array of Table values, where each Table represents a table block extracted from the input markdown.
Editor Settings
When enabled, attempts to coerce the extracted content into table format. This can help handle some malformed markdown tables.
Example: Extracting Tables from Documentation
- Create a new flow and add an Extract Markdown Table Blocks block.
- Add a Text block with markdown content containing table blocks and connect it to the
input
of the Extract Markdown Table Blocks block. - Connect any of the outputs to view the extracted tables or header information.
- Run the flow to see the results.
Error Handling
- If no table blocks are found in the input markdown, the
firstBlock
output will be control-flow-excluded andallBlocks
will be an empty array. - The block will not throw an error for invalid markdown; it will attempt to extract any table blocks it can identify.