Skip to main content
Extract Markdown Table Blocks Screenshot

Overview

Use the Extract Markdown Table Blocks block when a workflow needs to pull tables out of markdown text, README files, AI-generated responses, or documentation. The block detects standard pipe-delimited markdown tables and returns them as structured Table values that you can pass into downstream blocks such as Analyze Table, Table to File, or Flow Output.

Inputs

input
string
required
The markdown-formatted text from which to extract table blocks.

Outputs

firstBlock
table
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.
allBlocks
table[]
An array of Table values, where each Table represents a table block extracted from the input markdown.

Editor Settings

coerceToTable
boolean
default:false
When enabled, attempts to coerce the extracted content into table format. This can help handle some malformed markdown tables.

Example: Extracting Tables from Documentation

  1. Create a new flow and add an Extract Markdown Table Blocks block.
  2. Add a Text block with markdown content containing table blocks and connect it to the input of the Extract Markdown Table Blocks block.
  3. Connect any of the outputs to view the extracted tables or header information.
  4. 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 and allBlocks 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.

FAQ

The block expects tables to be formatted using standard markdown table syntax with pipe characters (|) separating columns and hyphens (-) in the separator row.
Table headers are identified by the separator row (containing hyphens) that follows the header row. The headers are preserved in the output Table values.
Yes, the block handles standard markdown table formatting including text alignment indicators (:---:) and varying column widths. However, nested tables or HTML tables are not supported.

See Also