# rendersAsBlock

**Kind:** Function

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

Does this child render as block-level content?

`isVideoHref` is injected rather than imported so this module stays free of
the renderer's ESM dependency graph; MarkdownRenderer passes its own
known-host allowlist check (a bare link to youtube/vimeo/loom becomes a
<figure> embed, so it is block too).

## Signature

```ts
function rendersAsBlock(child: HastChild | null | undefined, isVideoHref: (href: string) => boolean): boolean
```

## Parameters

| Name | Type |
|---|---|
| `child` | `HastChild | null | undefined` |
| `isVideoHref` | `(href: string) => boolean` |

**Returns:** `boolean`
