From 7069c90465b7595af8b9992b8826e698dc73e293 Mon Sep 17 00:00:00 2001 From: Daniel Onyejesi Date: Sat, 21 Mar 2026 21:06:13 -0400 Subject: [PATCH] Fix: enforce plain text output in all AI prompts (no markdown) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add PLAIN TEXT ONLY rule to CORE_RULES so no prompt returns asterisks, pound signs, or other markdown symbols — output is copy-ready as-is. --- src/utils/prompts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/prompts.js b/src/utils/prompts.js index 7d92d02..a502a20 100644 --- a/src/utils/prompts.js +++ b/src/utils/prompts.js @@ -9,6 +9,9 @@ CRITICAL RULES FOR ALL OUTPUTS: - Use professional medical language - Be concise but thorough - Output ONLY the requested text, no meta-commentary +- PLAIN TEXT ONLY: do NOT use markdown formatting — no asterisks (*), no pound signs (#), no underscores (_), no backticks, no bold/italic markers +- Use plain text section labels followed by a colon (e.g. "Assessment:") on their own line for headers +- Use plain numbered lists (1. 2. 3.) or plain line breaks for structure, never markdown bullets `; const PROMPTS = {