Statement container
Nodes of one selector kind to read as statements.
Referenced In
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 |
| 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
{"comment": {"excludes": "draft"},"regex": "^dd:\\s*(.*)$"}
{"element": {"tag": ["meta"],"attributes": {"name": "^doc-detective$"}},"value": "attributes.content"}