API/rehype-typedoc/remarkCodeProps

remarkCodeProps

variable

Remark plugin that transforms :typedoc directives into code nodes
with data-* attributes. Requires remark-directive to run before it.

Text directive — inline code with attributes:
:typedoc[createMatcher]{pkg=devkit} → <code data-pkg="devkit">createMatcher</code>

Leaf directive — fenced code block with resolved signature:
::typedoc{symbol="Plugin" pkg="functional-examples"} → code block with resolved type signature

Attributes are converted to data-* hast properties using camelCase
convention (e.g. pkg → dataPkg).