Skip to content

Function: parseDocComment() ​

ts
function parseDocComment(
   raw, 
   configuration?, 
   parse?
): ParsedDoc;

Defined in: packages/core/src/grammar.ts:359

Parse a doc-comment's INNER text (already stripped of /* */ framing, or a raw block — both are handled) into a ParsedDoc. The configuration decides which tags are active and which custom tags to capture; unknown or unsupported tags are ignored, so the grammar degrades gracefully.

Parameters ​

raw ​

string

The comment text (with or without /** … */ framing).

configuration? ​

CssDocConfiguration = ...

The active tag configuration (defaults to the full standard vocabulary).

parse? ​

CssParse

Returns ​

ParsedDoc

The structured tags.

Released under the MIT License