# collectDirectiveText

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web/src/components/Viewer/remarkDirectiveComponents.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/components/Viewer/remarkDirectiveComponents.ts#L40)

Collect raw text (and link URLs) from a directive subtree — for :::video.

## Signature

```ts
function collectDirectiveText(node: any): string
```

## Parameters

| Name | Type |
|---|---|
| `node` | `any` |

**Returns:** `string`
