> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# Statement container

> Nodes of one selector kind to read as statements.

Nodes of one selector kind to read as statements.

## Referenced In

* [Inline statement definition](/reference/schemas/inline-statement-definition)

## Fields

| Field     | Type                               | Description                                                                                                                                                                              | Default |          |      |     |       |     |     |     |                |           |                    |   |
| :-------- | :--------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ | -------- | ---- | --- | ----- | --- | --- | --- | -------------- | --------- | ------------------ | - |
| comment   | object                             | Optional. Selects comments.                                                                                                                                                              | —       |          |      |     |       |     |     |     |                |           |                    |   |
| codeBlock | one of: - string - object          | Optional. Selects code blocks. A string selects one language.                                                                                                                            | —       |          |      |     |       |     |     |     |                |           |                    |   |
| link      | object                             | Optional. Selects links.                                                                                                                                                                 | —       |          |      |     |       |     |     |     |                |           |                    |   |
| image     | object                             | Optional. Selects images.                                                                                                                                                                | —       |          |      |     |       |     |     |     |                |           |                    |   |
| strong    | object                             | Optional. Selects bold text.                                                                                                                                                             | —       |          |      |     |       |     |     |     |                |           |                    |   |
| emphasis  | object                             | Optional. Selects italic text.                                                                                                                                                           | —       |          |      |     |       |     |     |     |                |           |                    |   |
| text      | object                             | Optional. Selects runs of prose, outside code, links, and formatting.                                                                                                                    | —       |          |      |     |       |     |     |     |                |           |                    |   |
| element   | one of: - string - object          | Optional. Selects elements, such as HTML tags, XML elements, and JSX components. A string selects one tag.                                                                               | —       |          |      |     |       |     |     |     |                |           |                    |   |
| value     | string                             | Optional. Field that holds the statement text. Defaults to the node's main text. Pattern: \`^(content                                                                                    | text    | language | meta | url | title | src | alt | tag | attributes.\S+ | match.\d+ | precededBy.\d+)$\` | — |
| regex     | one of: - string - array of string | Optional. Regular expressions to run on the statement text. The first group of the first match becomes the statement, else the whole match. A node that doesn't match isn't a statement. | —       |          |      |     |       |     |     |     |                |           |                    |   |

## Examples

```json
{
  "comment": {
    "excludes": "draft"
  },
  "regex": "^dd:\\s*(.*)$"
}
```

```json
{
  "element": {
    "tag": [
      "meta"
    ],
    "attributes": {
      "name": "^doc-detective$"
    }
  },
  "value": "attributes.content"
}
```