Function: SqlBlock()
SqlBlock(
__namedParameters):Element
Render a SQL string as a syntax-highlighted code block. The query is
first run through _prettySql so one-line Genie output reads as
formatted SQL, then highlighted to minimal inline HTML via
highlightToHtml (shiki). Unlike Streamdown’s code renderer,
this emits a plain <pre><code> with only per-token color spans - no
line-number gutter or per-line wrappers - so the SQL selects and
copies cleanly. A CopyButton copies the formatted source. The
highlighter loads asynchronously, so we render uncolored text until
the tokens are ready to avoid a flash of empty space.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”string
Returns
Section titled “Returns”Element