Skip to navigation

Statement container

Nodes of one selector kind to read as statements.

Referenced In

Fields

FieldTypeDescriptionDefault
commentobjectOptional. Selects comments.—
codeBlockone of:
- string
- object
Optional. Selects code blocks. A string selects one language.—
linkobjectOptional. Selects links.—
imageobjectOptional. Selects images.—
strongobjectOptional. Selects bold text.—
emphasisobjectOptional. Selects italic text.—
textobjectOptional. Selects runs of prose, outside code, links, and formatting.—
elementone of:
- string
- object
Optional. Selects elements, such as HTML tags, XML elements, and JSX components. A string selects one tag.—
valuestringOptional. Field that holds the statement text. Defaults to the node’s main text.

Pattern: `^(content
text
regexone 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"
}