onCodeBlock

fun onCodeBlock(handler: suspend (String) -> Unit)(source)

Registers a handler for code blocks.

Parameters

handler

The handler function that receives the code block content and optional language identifier