---
url: /reference/@cssdoc/core/functions/parseDocComment.md
---
# Function: parseDocComment()

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

Defined in: [packages/core/src/grammar.ts:359](https://github.com/thedannywahl/cssdoc/blob/main/packages/core/src/grammar.ts#L359)

Parse a doc-comment's INNER text (already stripped of `/* */` framing, or a raw block — both are
handled) into a [ParsedDoc](../interfaces/ParsedDoc.md). 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`](../classes/CssDocConfiguration.md) = `...`

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

### parse?

[`CssParse`](../type-aliases/CssParse.md)

## Returns

[`ParsedDoc`](../interfaces/ParsedDoc.md)

The structured tags.
