grr-cli 2.3.0

Google tools from the terminal, at maximum performance: 401 methods across 14 Google APIs in one generated command tree, zero-config, over HTTP/3
Documentation
---
/**
 * Renders a copy string in which backtick-delimited spans become real <code>
 * elements.
 *
 * Why this exists: props like `title` / `copy` / `description` are HTML-escaped
 * by Astro, so a backtick written in those strings reached the reader as a
 * literal backtick glyph — "Point the harness at `grr mcp` and it owns every
 * method in the index." Rather than strip the backticks (which loses the code
 * styling the copy is asking for), they are honoured here.
 *
 * Odd-indexed segments are the code spans; everything else is plain text and
 * is escaped by Astro as usual, so this cannot inject markup.
 */
interface Props {
  text: string;
}

const { text } = Astro.props;
const segments = text.split('`');
---

{
  segments.map((segment, index) =>
    index % 2 === 1 ? <code>{segment}</code> : <span>{segment}</span>,
  )
}