klyn.code.klyn.KlynDocComment.tagBlockValue
method
public static tagBlockValue(text as String, tag as String) as String
Description

Extracts a multi-line block tag (such as @example), preserving fenced code blocks and indentation.

Parameters
ParameterDescription
textCleaned documentation text.
tagBlock tag name including @ (e.g. "@example").
Returns

Block tag content, or "".

Example
import klyn.code.klyn

doc = "@example\n```klyn\nx = 1\n```"
assert "x = 1" in KlynDocComment.tagBlockValue(doc, "@example")