{
  "slug": "markdown-query",
  "name": "gizza-ai/markdown-query",
  "version": "0.1.0",
  "title": "Markdown Query — Extract Headings, Links, Images, Code & Tables — gizza.ai",
  "description": "Paste Markdown and pull out its headings, links, images, code blocks, or tables as plain text, JSON, or clean Markdown. Runs in your browser, nothing uploaded, free.",
  "tags": [
    "markdown query",
    "extract markdown",
    "markdown links",
    "markdown headings",
    "markdown tables",
    "markdown code blocks",
    "jq for markdown",
    "parse markdown"
  ],
  "category": "documents",
  "urls": {
    "page": "https://gizza.ai/tools/markdown-query/",
    "markdown": "https://gizza.ai/tools/markdown-query/index.md",
    "descriptor": "https://gizza.ai/tools/markdown-query/tool.json",
    "deep_link_example": "https://gizza.ai/tools/markdown-query/?markdown=%23%20Title%0A%0ASee%20the%20%5Bdocs%5D%28https%3A%2F%2Fexample.com%20%22Docs%22%29%20and%20the%20%21%5Blogo%5D%28logo.png%29.%0A%0A%60%60%60rust%0Alet%20x%20%3D%201%3B%0A%60%60%60%0A%0A%7C%20a%20%7C%20b%20%7C%0A%7C---%7C---%7C%0A%7C%201%20%7C%202%20%7C&extract=headings&format=text&include_line_numbers=true"
  },
  "cli": "gizza tool markdown-query '# Title\n\nSee the [docs](https://example.com \"Docs\") and the ![logo](logo.png).\n\n```rust\nlet x = 1;\n```\n\n| a | b |\n|---|---|\n| 1 | 2 |'",
  "tool": {
    "description": "Query a Markdown document like jq for markup. Set extract to headings (default), links, images, code_blocks, or tables to pull out that element. format is text (human-readable, default), json (structured {count, items}), or markdown (reconstructed Markdown). include_line_numbers annotates each item with its 1-based source line. Returns the extracted items in the chosen format.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "extract": {
          "default": "headings",
          "description": "Which elements to pull out: headings (default), links, images, code_blocks, or tables.",
          "enum": [
            "headings",
            "links",
            "images",
            "code_blocks",
            "tables"
          ],
          "type": "string"
        },
        "format": {
          "default": "text",
          "description": "Output format: text (human-readable, default), json (structured {count, items}), or markdown (reconstructed Markdown for each item).",
          "enum": [
            "text",
            "json",
            "markdown"
          ],
          "type": "string"
        },
        "include_line_numbers": {
          "default": false,
          "description": "Annotate each item with the 1-based source line it starts on. Default false.",
          "type": "boolean"
        },
        "markdown": {
          "description": "The Markdown document to query.",
          "type": "string"
        }
      },
      "required": [
        "markdown"
      ],
      "type": "object"
    }
  }
}