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

# Markup definition

> Reference for the `Markup definition` schema.

## Referenced In

* [File type (custom)](/reference/schemas/file-type-custom)

## Fields

| Field        | Type                                               | Description                                                         | Default |
| :----------- | :------------------------------------------------- | :------------------------------------------------------------------ | :------ |
| name         | string                                             | Optional. Name of the markup definition                             | —       |
| regex        | one of: - string - array of string                 | Optional. Regular expressions to match the markup type.             | —       |
| batchMatches | boolean                                            | Optional. If `true`, all matches are combined into a single string. | `false` |
| actions      | one of: - string - array of one of: string, object | Optional. Actions to perform when the markup type is detected.      | —       |

## Examples

```json
{
  "name": "example",
  "regex": "example",
  "batchMatches": false,
  "actions": "annotate"
}
```