[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [index](../README) / parsePreviewMarker

# Function: parsePreviewMarker()

> **parsePreviewMarker**(`text`): \{ `hidden`: `boolean`; `id`: `string`; `kind`: `"start"`; `type`: `string`; \} \| \{ `id`: `string`; `kind`: `"end"`; \}

What a marker comment says, or `null` for any other comment.

## Parameters

### text

`string`

## Returns

\{ `hidden`: `boolean`; `id`: `string`; `kind`: `"start"`; `type`: `string`; \} \| \{ `id`: `string`; `kind`: `"end"`; \}
