public static exampleText(text as String) as String
Returns the example section of a KlynDoc comment (either explicit @example or trailing fenced code block after @ tags).
| Parameter | Description |
|---|---|
text | Cleaned documentation text. |
Example markdown/code text, or "".
import klyn.code.klyn doc = "@example `compute(1)`" assert KlynDocComment.exampleText(doc) == "`compute(1)`"