diff --git a/packages/editor/App.tsx b/packages/editor/App.tsx index 60a613c..10c5167 100644 --- a/packages/editor/App.tsx +++ b/packages/editor/App.tsx @@ -56,7 +56,7 @@ import type { PlanDiffMode } from '@plannotator/ui/components/plan-diff/PlanDiff const PLAN_CONTENT = `# Implementation Plan: Real-time Collaboration ## Overview -Add real-time collaboration features to the editor using WebSocket connections and operational transforms. +Add real-time collaboration features to the editor using **[WebSocket API](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API)** and *[operational transforms](https://en.wikipedia.org/wiki/Operational_transformation)*. ### Architecture diff --git a/packages/ui/components/Viewer.tsx b/packages/ui/components/Viewer.tsx index 0ebf05e..a1b8ab0 100644 --- a/packages/ui/components/Viewer.tsx +++ b/packages/ui/components/Viewer.tsx @@ -955,7 +955,7 @@ const InlineMarkdown: React.FC<{ text: string; onOpenLinkedDoc?: (path: string) // Bold: **text** let match = remaining.match(/^\*\*(.+?)\*\*/); if (match) { - parts.push({match[1]}); + parts.push(); remaining = remaining.slice(match[0].length); continue; } @@ -963,7 +963,7 @@ const InlineMarkdown: React.FC<{ text: string; onOpenLinkedDoc?: (path: string) // Italic: *text* match = remaining.match(/^\*(.+?)\*/); if (match) { - parts.push({match[1]}); + parts.push(); remaining = remaining.slice(match[0].length); continue; } diff --git a/packages/ui/components/plan-diff/PlanCleanDiffView.tsx b/packages/ui/components/plan-diff/PlanCleanDiffView.tsx index 9f6acb3..2c31217 100644 --- a/packages/ui/components/plan-diff/PlanCleanDiffView.tsx +++ b/packages/ui/components/plan-diff/PlanCleanDiffView.tsx @@ -299,7 +299,7 @@ const InlineMarkdown: React.FC<{ text: string }> = ({ text }) => { if (match) { parts.push( - {match[1]} + ); remaining = remaining.slice(match[0].length); @@ -308,7 +308,7 @@ const InlineMarkdown: React.FC<{ text: string }> = ({ text }) => { match = remaining.match(/^\*(.+?)\*/); if (match) { - parts.push({match[1]}); + parts.push(); remaining = remaining.slice(match[0].length); continue; }