import type { QuestionRequest } from '@/types/question'; /** * Pure serializers for QuestionRequest payloads. * * Extracted from QuestionCard.tsx so they can be unit-tested without * pulling the component tree. Living in QuestionCard.tsx triggered the * `react-refresh/only-export-components` rule when exposed for tests; * the React-free home here avoids that constraint and keeps the * QuestionCard import surface focused on rendering. */ /** * Render a QuestionRequest as Markdown the user can paste into another * tool (chat with a companion model, issue tracker, doc, etc.). * * Layout per question: * ##
* * * * _Select all that apply._ (only when q.multiple) * * - **