---
layout: page
title: "Extract Code Blocks"
node_type: "lib.markdown.ExtractCodeBlocks"
namespace: "lib.markdown"
---

**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.
