Wocart

@wocart/theme v4.1.0


@wocart/theme / index / 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"; }