public static tagBlockValue(text as String, tag as String) as String
Extracts a multi-line block tag (such as @example), preserving fenced code blocks and indentation.
| Parameter | Description |
|---|---|
text | Cleaned documentation text. |
tag | Block tag name including @ (e.g. "@example"). |
Block tag content, or "".
import klyn.code.klyn doc = "@example\n```klyn\nx = 1\n```" assert "x = 1" in KlynDocComment.tagBlockValue(doc, "@example")