---
title: "Extract Code Blocks"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/markdown/extractcodeblocks
markdown: https://docs.nodetool.ai/nodes/lib/markdown/extractcodeblocks.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/markdown/extractcodeblocks.md
---

# Extract Code Blocks

**Type:** `lib.markdown.ExtractCodeBlocks`

**Namespace:** `lib.markdown`

## Description

Extracts code blocks and their languages from markdown.
    markdown, code, extraction

    Use cases:
    - Extract code samples for analysis
    - Collect programming examples
    - Analyze code snippets in documentation

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| markdown | `str` | The markdown text to analyze | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `list[dict[str, str]]` |  |

## Related Nodes

Browse other nodes in the [lib.markdown](./) namespace.
