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

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

See Also