@wdprlib/render
    Preparing search index...

    Function renderCode

    • Render a [[code]] block.

      The block is wrapped in <div class="code">. If the block is empty, the div is closed immediately with no inner content. When a language is specified and supported, the highlighter produces <div class="hl-main"><pre>...</pre></div> with token-level spans.

      Parameters

      • ctx: RenderContext

        The current render context.

      • data: CodeBlockData

        Code block data containing contents and optional language.

      Returns void