Skip to content
Prev Previous commit
Next Next commit
fix(files): render single pass when interactive to avoid index drift
  • Loading branch information
waleedlatif1 committed Mar 28, 2026
commit 5d7b4d953998a0bbaa6c41c640670aecf3d38fe7
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ const MarkdownPreview = memo(function MarkdownPreview({

checkboxCounterRef.current = 0

if (onCheckboxToggle) {
return (
<div ref={scrollRef} className='h-full overflow-auto p-6'>
<ReactMarkdown remarkPlugins={REMARK_PLUGINS} components={components}>
{content}
</ReactMarkdown>
</div>
)
}

const committedMarkdown = useMemo(
() =>
committed ? (
Expand Down
Loading